-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
As a part of adding type annotations (#243), it might be useful to be aided by a linter that helps identify untyped functions.
An example of this is flake8-annotations but I would like ruff to be considered instead, as a replacement for both flake8 and black.
Besides being faster and a way to prevent tool proliferation, ruff is able to be configured from pyproject.toml (unlike flake8) which would support migration away from setup.cfg to pyproject.toml in the future.
A plan for enabling ruff would be as follows:
PR 1:
- Migrate black to the latest version in pre-commit config and deal with minor formatting changes (in my testing there would be 8 files with whitespace changes; deleted blank lines).
PR 2:
- Replacing
flake8andblackin the pre-commit config withruffinstead - Configuring
ruffwith equivalent configuration to existing flake8 rules
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels