-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
all: Upgrade to ruff v0.9.6. #16774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
all: Upgrade to ruff v0.9.6. #16774
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #16774 +/- ##
=======================================
Coverage 98.53% 98.53%
=======================================
Files 169 169
Lines 21822 21822
=======================================
Hits 21502 21502
Misses 320 320 ☔ View full report in Codecov by Sentry. |
Code size report:
|
Signed-off-by: Christian Clauss <cclauss@me.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this. I've been using newer ruff versions for a while now and getting warnings about the toml settings being outdated, so it's good to have things updated here.
Summary
The Python linter and code formatter
ruff
is run in pre-commit and GitHub Actions. This pull request upgrades from ruff==0.1.3 to the current ruff==0.9.6 changing some configuration for new rules and code formatting stable style 2025.Testing
Running ruff locally and in pre-commit.
Linting:
Nine Python test files are excluded because ruff considers that they contain Python SyntaxErrors.
%
ruff rule PLC0206
# dict-index-missing-items will be enabled in a followup pull request. #16776%
ruff rule PLC1901
# compare-to-empty-string is now disabled by default.Formatting:
Hex constants were converted to lowercase.
String literals were concatenated if they fit within line-length.
Numerous files merely had a single blank line added near the top of the file as part of the stable style for 2025.