Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.3k
Enforce ruff/refurb rules (FURB)#4386
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
39e788a toc6d0727Compare44c33c5 to6b2b9acComparea563475 to3477d01CompareAvasam commentedAug 19, 2024
Looks like you're missing imports for |
DimitriPapadopoulos commentedAug 19, 2024
I think I mistakenly removed the |
e15d1e9 toe117139Compare80f3b0d tob03c668CompareUh oh!
There was an error while loading.Please reload this page.
Avasam commentedJan 3, 2025
@DimitriPapadopoulos I think you're missing a |
Avasam commentedJan 3, 2025
Now that this is back to being a simpler PR.@abravalheri /@jaraco refurb would also have been one of my suggestions with improvements in readability and simplifications. |
Uh oh!
There was an error while loading.Please reload this page.
7c685e4 to2dd27d1Compare6f44b22 to0cd6fb3CompareDimitriPapadopoulos commentedMay 23, 2025
Rebased. |
DimitriPapadopoulos commentedMay 23, 2025
|
FURB118 Use `operator.itemgetter(0)` instead of defining a lambda
FURB142 Use of `set.add()` in a for loop
FURB167 Use of regular expression alias `re.I`FURB167 Use of regular expression alias `re.M`FURB167 Use of regular expression alias `re.S`FURB167 Use of regular expression alias `re.X`
FURB188 Prefer `removesuffix` over conditionally replacing with slice.
FURB192 Prefer `max` over `sorted()` to compute the maximum value in a sequence
Co-authored-by: Avasam <samuel.06@hotmail.com>
Co-authored-by: Avasam <samuel.06@hotmail.com>
b8f8bcc intopypa:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Summary of changes
Follow-up of#4172.
Pull Request Checklist
newsfragments/.(Seedocumentation for details)