-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Ruff linter: enable rule UP031 #13049
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
base: main
Are you sure you want to change the base?
Conversation
S3 Image Test Results (AMD64 / ARM64) 2 files 2 suites 8m 10s ⏱️ Results for commit 83574a6. |
Test Results (amd64) - Integration, Bootstrap 5 files 5 suites 2h 20m 50s ⏱️ Results for commit 83574a6. |
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.
Awesome! You can really see that with every rule exclusion being removed, the codebase gets cleaner and more modern! 💯
I didn't check the automatic changes (done by a safe ruff linting rule fixer), but the manual ones are looking good! 🦸🏽
Motivation
#12953 introduced the
pyupgrade
rules to ourruff
linter.However, a few rules have been ignored. This PR enabled UP031 and fixes the code accordingly.