Skip to content

Consider ruff for formatting and linting #1

@lamkina

Description

@lamkina

Description

During the maintenance meeting, we discussed briefly using ruff, since this tool unifies linting, formatting, and sorting, in one tool. One of its main benefits is its performance, and it has gained large traction and is backed by large projects.

It could replace black, flake8 (plus numerous flake8 plugins), and isort, that we currently use in our CI tests, but it also supports other tools as well. This would simplify our CI tests and reduce maintenance to a single tool and config file.

Lets discuss here and get a working ruff.toml file that matches and replaces our current checks done with other tools. At the moment it looks like flake8-rst-docstring is not included, but its possible that its already integrated.

Our new ruff/pre-commit check has been merged and will now run on Azure for all repos, below is a list tracking the progress of all our PRs bringing our repos up to date with the new checks:

Metadata

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