-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enforce ruff/pyupgrade rules (UP) #4379
base: main
Are you sure you want to change the base?
Conversation
You should ignore |
4b1668e
to
2b3c085
Compare
78ff278
to
6347575
Compare
172fe8d
to
5360321
Compare
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.
Some comments and imo potential non-automated improvements I noticed from also having applied UP03 in other projects
8c26c35
to
02086f8
Compare
ba3eccc
to
eb25d9a
Compare
1499a0a
to
c6bc8e7
Compare
c6bc8e7
to
661f48e
Compare
661f48e
to
335bb01
Compare
Restarted from scratch, it's easier and less error-prone than rebasing. |
3a21e6c
to
8e32c41
Compare
5ee902c
to
a896611
Compare
Might wanna disable UP027 too (I've done so here: #4558) |
a896611
to
5b88473
Compare
5b88473
to
146c3d1
Compare
CI failure looks completely unrelated, I got the same thing here: https://github.com/pypa/setuptools/actions/runs/11113018762/job/30876386043?pr=4556 |
UP030 Use implicit references for positional format fields
UP031 Use format specifiers instead of percent format
UP032 Use f-string instead of `format` call
146c3d1
to
2e10c29
Compare
Summary of changes
Enforce ruff/pyupgrade rules (
UP
).Follow-up of #4125.
Pull Request Checklist
newsfragments/
.(See documentation for details)