ci: add Ruff config, pre-commit hooks, and GitHub Actions lint workflow#205
Open
korbonits wants to merge 1 commit into
Open
ci: add Ruff config, pre-commit hooks, and GitHub Actions lint workflow#205korbonits wants to merge 1 commit into
korbonits wants to merge 1 commit into
Conversation
- Add Ruff config (E/F/I rules, per-file ignores for __init__.py) - Add .pre-commit-config.yaml with ruff lint + format hooks - Add .github/workflows/lint.yml triggering on PRs - Auto-fix 46 violations (unsorted imports, unused imports, f-strings) Note: ruff config uses ruff.toml (pyproject.toml is gitignored). Added noqa: F821 to one intentional missing-import probe. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
__init__.py).pre-commit-config.yamlwith Ruff lint + format hooks.github/workflows/lint.ymltriggering on PRs and pushes tomainNote: Ruff config lives in
ruff.tomlrather thanpyproject.toml—pyproject.tomlis listed in.gitignore. Added# noqa: F821to one intentional availability-probe import inevaluation.py.Motivation
No linting or PR-level CI exists today. This PR adds lightweight enforcement using Ruff — fast, single dependency — and wires it up to run on every PR.
What's not included
Testing
Ran
ruff check .andruff format --check .locally — all checks pass.Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com