You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ruff is a fast, actively-maintained static analysis tool that implements a TON of linting rules, including those from isort, flake8, and 20+ flake8-* extensions.
These updates can be done in any order, since they're self-contained to individual repos.
When porting configuration to ruff, try to match the project's existing style preferences to minimize style-related changes.
The content you are editing has changed. Please copy your edits and refresh the page.
Description
ruff
is a fast, actively-maintained static analysis tool that implements a TON of linting rules, including those fromisort
,flake8
, and 20+flake8-*
extensions.ref: https://docs.astral.sh/ruff/rules/#legend
ruff-format
can also perform auto-formatting of Python code, similar toblack
.Every RAPIDS repo should use
ruff
, and stop usingblack
,isort
andflake8
.Benefits of this work
pyproject.toml
files, by allowing removal of.flake8
/setup.cfg
across repos.ipynb
) without needing to involve additional libraries like nbQA (example: enforce ruff checks on Python code in notebooks (fixes #333) deployment#370)Acceptance Criteria
ruff
is used in all RAPIDS reposblack
is not used directly in any RAPIDS reposflake8
is not used directly in any RAPIDS reposisort
is not used directly in any RAPIDS reposruff
configuration is stored inpyproject.toml
filesNotes
Motivating discussions:
Approach
These updates can be done in any order, since they're self-contained to individual repos.
When porting configuration to
ruff
, try to match the project's existing style preferences to minimize style-related changes.Updates
The text was updated successfully, but these errors were encountered: