-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace flake8 + black + isort with
ruff
(#411)
ruff is a single tool and acts as a drop-in replacement for all these tools. It's config is in one place, in pyproject.toml. And it's blazing fast! This commit also removes tox and depends on GitHub actions for multi-env testing. Fixes #410
- Loading branch information
Showing
49 changed files
with
160 additions
and
486 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 24.2.0 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.4.3 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
|
||
- repo: [email protected]:PyCQA/autoflake.git | ||
rev: v2.3.1 | ||
hooks: | ||
- id: autoflake | ||
args: | ||
[ | ||
"--in-place", | ||
"--remove-all-unused-imports", | ||
"--ignore-init-module-imports", | ||
] | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black", "--filter-files", "--quiet"] | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.