setuptools
setuptools copied to clipboard
Enforce ruff/refurb rules (FURB)
Summary of changes
Follow-up of #4172.
Pull Request Checklist
- [ ] Changes have tests
- [ ] News fragment added in
newsfragments/. (See documentation for details)
Looks like you're missing imports for operator
I think I mistakenly removed the imports while rebasing. Should be fixed now.
@DimitriPapadopoulos I think you're missing a ruff.toml change adding FURB
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.
Rebased.
- The Python 3.14 CI errors might be related to https://github.com/python/cpython/issues/133653.
- Not sure about the PyPy 3.10 CI error, but it seems unrelated to this PR as well.