feat(ci): add GitHub Actions workflow and configure ruff + pytest#2
Merged
Conversation
Adds CI pipeline running on every push to master and all PRs: - Matrix: Python 3.10, 3.11, 3.12 - Lint step with ruff - Test step with pytest (MPLBACKEND=Agg for headless) Adds ruff and pytest configuration to pyproject.toml: - ruff: line-length 100, py310+, rules E/F/W/I/UP - pytest: testpaths, addopts, 'slow' marker Lint cleanup across the codebase (ruff --fix): - Import sorting (I-rule) across 30+ files - Renamed ambiguous variables (E741): l→link, l→label, I→I_mat - Removed unused variables (F841) - Added # noqa: F401 on __init__.py re-exports - Moved mid-file import to top (E402 in test_sensor_models.py) Adds .ruff_cache/ to .gitignore.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
M1.2 — CI Workflow + Lint Configuration
.github/workflows/ci.yml
pip install -e ".[dev]"→ruff check .→pytest tests/ -vMPLBACKEND=Aggfor headless test runsruff + pytest config in pyproject.toml
.ruff_cache/Lint cleanup (34 files)
l→link/label,I→I_mat# noqa: F401on all__init__.pyre-exportsPart of M1 (Foundation Hardening).