Skip to content

Switch to ruff for linting and formatting #369

@copelco

Description

@copelco

Summary

As a developer, I want to switch to using ruff for linting and formatting my Python code, so that I can benefit from its speed and comprehensive feature set.

Todo

  • Add ruff-pre-commit with ruff-check fix and ruff-format hooks, e.g.:

    - repo: https://github.com/astral-sh/ruff-pre-commit
      # Ruff version.
      rev: v0.14.4
      hooks:
        # Run the linter.
        - id: ruff-check
          args: [--fix]
        # Run the formatter.
        - id: ruff-format
  • Remove isort package and config

  • Remove black package and config

  • Remove flake8 package and config

  • ruff is added a development dependency so it's available in development environments

AC

  • All code is linted and formatted using ruff
  • Pre-commit hooks run ruff for linting and formatting
  • No references to isort, black, or flake8 remain in the project configuration or dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions