Replace flake8, bandit, isort, pyupgrade with ruff#2076
Merged
Conversation
308b968 to
ca937bb
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2076 +/- ##
==========================================
+ Coverage 83.28% 83.30% +0.01%
==========================================
Files 198 198
Lines 19417 19437 +20
Branches 1056 1056
==========================================
+ Hits 16172 16192 +20
Misses 3063 3063
Partials 182 182 ☔ View full report in Codecov by Harness. |
rytilahti
approved these changes
Jun 27, 2026
- pre-commit-hooks v4.5.0 → v6.0.0 - ruff v0.7.1 → v0.15.20 - mypy v1.8.0 → v2.1.0 - Fix mypy error in extract_tokens.py: return [] → return in Iterator - Apply ruff-format to 26 files
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
Consolidates all linting into ruff, removing the redundant standalone tools. Three commits:
1. Migrate deprecated poetry dev-dependencies section
Renames
[tool.poetry.dev-dependencies]to[tool.poetry.group.dev.dependencies]to silence the deprecation warning emitted on every poetry invocation.2. Replace flake8, bandit, isort, pyupgrade with ruff
Ruff covers all rules provided by the removed tools via built-in rule sets:
F,B,PTSIAlso removes the now-redundant
[tool.isort]config section and adds--exit-non-zero-on-fixto the ruff hook so CI fails when auto-fixes are applied.3. Fix violations from expanded ruleset
per-file-ignoresfor test files (S101, S105, S106, B018, B904, PT009, PT012, PT027)pytest.raises()withoutmatch=) — too many existing cases to address in this PRraise ... from exc/None)# nosec(bandit) to# noqa: Sxxx(ruff) throughout the codebaseTest plan
pre-commit run --all-filesruns clean