Skip to content

use ruff instead of black / flake8 / isort across RAPIDS #130

Open
@jameslamb

Description

Description

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.

ref: https://docs.astral.sh/ruff/rules/#legend

ruff-format can also perform auto-formatting of Python code, similar to black.

Every RAPIDS repo should use ruff, and stop using black, isort and flake8.

Benefits of this work

Acceptance Criteria

  • ruff is used in all RAPIDS repos
  • black is not used directly in any RAPIDS repos
  • flake8 is not used directly in any RAPIDS repos
  • isort is not used directly in any RAPIDS repos
  • all ruff configuration is stored in pyproject.toml files

Notes

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

Preview Give feedback

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions