-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): replace black+isort+flake8 with ruff (#1406)
* chore(deps): replace black+isort+flake8 with ruff Signed-off-by: Luka Peschke <[email protected]> * chore: make format Signed-off-by: Luka Peschke <[email protected]> * fix broken imports Signed-off-by: Luka Peschke <[email protected]> * fix broken tests Signed-off-by: Luka Peschke <[email protected]> * chore: double quotes Signed-off-by: Luka Peschke <[email protected]> --------- Signed-off-by: Luka Peschke <[email protected]>
- Loading branch information
1 parent
69ebbee
commit 8f4a0d4
Showing
149 changed files
with
8,721 additions
and
9,682 deletions.
There are no files selected for viewing
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,27 +1,20 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: check-json | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
|
||
- repo: http://gitlab.com/pycqa/flake8 | ||
rev: 3.8.3 | ||
hooks: | ||
- id: flake8 | ||
name: Lint Python files using flake8 | ||
- repo: local | ||
hooks: | ||
- id: system | ||
name: Lint with Ruff | ||
entry: poetry run ruff --fix | ||
types: [python] | ||
language: system | ||
|
||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.5.4 | ||
hooks: | ||
- id: isort | ||
name: Sort Python imports | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
name: Reformat Python files | ||
- id: system | ||
name: Lint with Ruff format | ||
entry: poetry run ruff format | ||
types: [python] | ||
language: system |
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
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.