Switch from black and isort to ruff#364
Conversation
Applying ruff-format while black and isort still run keeps the formatting churn out of the tooling change. ruff-format joins adjacent byte-string literals that black kept on separate lines, which would collapse the readable protocol-field byte groupings. A # fmt: skip on each such site preserves the layout.
Consolidates linting and formatting under one tool.
Flags the whitespace and statement style issues that formatting leaves unchecked.
Catches unused imports, unused variables, and other reference bugs. The __init__.py re-exports and the deprecated query_info shim are exempted per-file because their imports are deliberate API surface, not dead code.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #364 +/- ##
==========================================
- Coverage 98.73% 98.73% -0.01%
==========================================
Files 24 24
Lines 5309 5307 -2
==========================================
- Hits 5242 5240 -2
Misses 67 67
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Maybe make a release before this is merged? |
|
I've pushed out v1.17.0 just now, thank you very much for all your changes and bugfixes so far. I appreciate that this consolidates everything into 1 tool but for now I prefer to keep things as they are. Most of my other projects use Maybe I'll revisit this in the future but for now wish to keep this as it is today. |
black and isort are two tools, two configs, and two pinned
versions to keep in step for what ruff does in one.