Repository navigation
Enhancement | Lint with ruff in CI and pre-commit, drop pylint - #353
Merged
Merged
Conversation
No behavior change: * f-strings without placeholders become plain strings * `not x in y` becomes `x not in y` * unused imports and variables are dropped * the logger's `_TIME_FORMAT` lambda becomes a function test_discover now also checks the clusters were scanned, which uses the mock it was binding and never reading. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* [tool.ruff] in pyproject.toml selects pyflakes (F) and the pycodestyle errors (E4, E7, E9): mistakes, not style; black still owns formatting. * The required `lint` job runs ruff 0.17.5 after black, through astral-sh/ruff-action pinned by SHA. pre-commit gets the ruff-check hook. * pylint 2.8.3, which never ran in CI and does not support Python 3.12+, is removed with .pylintrc. poetry.lock regenerated with Poetry 1.8.2 (as in CI) and --no-update: only pylint's tree goes, ruff comes in. * F541 stays ignored in _backend_config.py until #333 merges, to avoid conflicting with it. Relates to #346 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 24 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Coverage Report for CI Build 43630606152Coverage decreased (-0.02%) to 73.049%Details
Uncovered Changes
Coverage Regressions62 previously-covered lines in 3 files lost coverage.
Coverage Stats
💛 - Coveralls |
binbashdevops
approved these changes
Nov 14, 2026
This was referenced Nov 14, 2026
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.
What?
Two commits:
1. Fix | Clear the ruff findings. 33 findings, no behavior change:
not x in ybecomesx not in y_TIME_FORMATlambda becomes a functiontest_discovernow also asserts the clusters were scanned, using the mock it bound and never read2. Enhancement | Lint with ruff in CI and pre-commit, drop pylint
[tool.ruff]inpyproject.toml: pyflakes (F) plus the pycodestyle errors (E4,E7,E9). Mistakes, not style: black still owns formattinglintjob runs ruff 0.17.5 after black, throughastral-sh/ruff-actionpinned by SHA. Alsoactions/checkout@v4withpersist-credentials: falseruff-checkhookpylint2.8.3 (never ran in CI, does not support Python 3.12+) and.pylintrc. Addsruff.poetry.lockis regenerated with Poetry 1.8.2 (as in CI) and--no-update: onlypylintand its 6 dependencies leave, nothing else movesCLAUDE.mdandREADME.mdWhy?
#346: there was no semantic linter in CI.
pylintwas configured but never ran, and its pinned version cannot run on the Python versions we support.Open PRs
_backend_config.pykeepsF541ignored, with a TODO, until Fix/issue 317 multiple regressions #333 merges. Fix/issue 317 multiple regressions #333 rewrites those lines, so fixing them here would conflict.project.py, only an unused import (line 19) is dropped. It does not overlap Feature | Project create extra checks #334. Bugbear'sB020(a loop variable that shadows the iterable it loops over) is not enabled: Feature | Project create extra checks #334 rewrites that loop.Not in this PR
pre-commit run --all-filesalready failed on black withtests/build_scripts/simple_build_bad_syntax.py: pre-commit passes files explicitly, so black ignoresextend-excludeunless the hook adds--force-exclude.Relates to #346
🤖 Generated with Claude Code