ci: migrate from flake8 to ruff (#2120)#2126
Open
cfxegbert wants to merge 4 commits into
Open
Conversation
…demySoftwareFoundation#2120) Signed-off-by: Robert Minsk <robertminsk@yahoo.com>
Signed-off-by: Robert Minsk <robertminsk@yahoo.com>
…2120) Signed-off-by: Robert Minsk <robertminsk@yahoo.com>
…oundation#2120) Signed-off-by: Robert Minsk <robertminsk@yahoo.com>
Member
|
Hi @cfxegbert, is there parity with flake8 rules? If so, I think it would be safe to completely replace flake8 with ruff and delete the flake8 job from the CI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See #2120
New files
.github/workflows/ruff.yamlruff checkon PR/push when Python sources or lint config changevendor/,data/, and_version.pyactions/checkoutandastral-sh/ruff-actionruff.tomlsrc/rez/vendorandsrc/rez/dataE/W, PyflakesF,DTZ,ISC, etc.)E722— bareexceptE741— ambiguous variable namesPer-file ignoresfor known existing violations (no code changes in this branch):src/rezgui/widgets/TimestampWidget.pyE731src/rez/package_order.pyE721src/rezgui/objects/Config.pyE721install.pyE402,F401setup.pyE402release-rez.pyE402,DTZ011src/rez/tests/*.pyF821src/rez/bind/_pymodule.pyF821src/rez/utils/filesystem.pyF821src/rez/resolver.pyF821src/rez/cli/release.pyF821src/rezplugins/release_vcs/git.pyF821src/rez/cli/_main.pyISC002src/rez/tests/test_formatter.pyE742src/rezgui/widgets/ContextToolsWidget.pyF401src/support/package_utils/set_authors.pyINP001Out of scope (this branch)
Summary
Infrastructure-only slice of the flake8 → Ruff migration: add Ruff config and CI with per-file exemptions so lint passes on the existing codebase without touching source files yet.
I used some help from an LLM to create the summary for this PR