Skip to content
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

Ruff: enable all pyflakes and perf rules #4556

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Aug 11, 2024

Summary of changes

Setuptools conforms to all the Ruff-implemented Pyflakes and Perflint rules except PERF203 and a single instance of PERF102. So we can be less picky about their selection.

PERF203 is worth looking at, but is often a micro-optimisation with false-positives, let's not block the CI on that. I applied it on some tests.

Pull Request Checklist

  • Changes have tests (these are new static tests)
  • News fragment added in newsfragments/. (no public-facing change)
    (See documentation for details)

@Avasam Avasam force-pushed the ruff-all-pyflakes-and-perf-rules branch 2 times, most recently from 1f341a8 to ca0f6c7 Compare August 16, 2024 22:54
@Avasam Avasam force-pushed the ruff-all-pyflakes-and-perf-rules branch 2 times, most recently from 22a9da2 to 5345768 Compare August 27, 2024 14:59
@Avasam Avasam force-pushed the ruff-all-pyflakes-and-perf-rules branch from 5345768 to 5aed410 Compare August 28, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant