-
Notifications
You must be signed in to change notification settings - Fork 115
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
Replace flake8 with Ruff #12621
Replace flake8 with Ruff #12621
Conversation
5325e99
to
5c82eb0
Compare
|
||
|
||
[tool.ruff.flake8-quotes] | ||
inline-quotes = "single" |
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.
maybe one day....
hooks: | ||
- id: trailing-whitespace | ||
exclude: tests/foreman/data/ | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: debug-statements |
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.
Can you also run pre-commit autoupdate; pre-commit run -a
to update the available pre-commit hooks and code changes?
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.
I would like to do it in a separate PR.
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.
#12650 created
* Replace flake8 with Ruff * Replace flake8 with Ruff * Fix UP038 - non-pep604-isinstance * Fix F401 - remove unused imports * Fix F601 - Remove repeated dictionary key * Fix not-in-test (E713) (cherry picked from commit 187cca1)
* Replace flake8 with Ruff * Replace flake8 with Ruff * Fix UP038 - non-pep604-isinstance * Fix F401 - remove unused imports * Fix F601 - Remove repeated dictionary key * Fix not-in-test (E713) (cherry picked from commit 187cca1)
* Replace flake8 with Ruff * Replace flake8 with Ruff * Fix UP038 - non-pep604-isinstance * Fix F401 - remove unused imports * Fix F601 - Remove repeated dictionary key * Fix not-in-test (E713) (cherry picked from commit 187cca1)
* Replace flake8 with Ruff * Replace flake8 with Ruff * Fix UP038 - non-pep604-isinstance * Fix F401 - remove unused imports * Fix F601 - Remove repeated dictionary key * Fix not-in-test (E713) (cherry picked from commit 187cca1)
* Replace flake8 with Ruff * Replace flake8 with Ruff * Fix UP038 - non-pep604-isinstance * Fix F401 - remove unused imports * Fix F601 - Remove repeated dictionary key * Fix not-in-test (E713) (cherry picked from commit 187cca1)
* Replace flake8 with Ruff * Replace flake8 with Ruff * Fix UP038 - non-pep604-isinstance * Fix F401 - remove unused imports * Fix F601 - Remove repeated dictionary key * Fix not-in-test (E713) (cherry picked from commit 187cca1)
* Replace flake8 with Ruff * Replace flake8 with Ruff * Fix UP038 - non-pep604-isinstance * Fix F401 - remove unused imports * Fix F601 - Remove repeated dictionary key * Fix not-in-test (E713)
* Replace flake8 with Ruff * Replace flake8 with Ruff * Fix UP038 - non-pep604-isinstance * Fix F401 - remove unused imports * Fix F601 - Remove repeated dictionary key * Fix not-in-test (E713)
* Replace flake8 with Ruff * Replace flake8 with Ruff * Fix UP038 - non-pep604-isinstance * Fix F401 - remove unused imports * Fix F601 - Remove repeated dictionary key * Fix not-in-test (E713)
This patch replaces flake8 with Ruff that is 10-100x faster than flake8. It enables only a few rule sets that were enabled by pyflakes already.
Other rules will be added in future PRs.