Replace `flake8` with `Ruff`.

master
Fabio Caccamo 2023-04-05 17:42:11 +02:00
parent 26368a3e05
commit 4148f6ece9
3 changed files with 18 additions and 11 deletions

View File

@ -25,12 +25,10 @@ repos:
- id: isort - id: isort
args: ["--profile", "black"] args: ["--profile", "black"]
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 6.0.0 rev: v0.0.261
hooks: hooks:
- id: flake8 - id: ruff
additional_dependencies:
- flake8-bugbear
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v4.4.0

View File

@ -19,3 +19,18 @@ exclude = '''
| venv | venv
)/ )/
''' '''
[tool.ruff]
ignore = []
line-length = 88
select = [
"B",
"B9",
"C",
"E",
"F",
"W",
]
[tool.ruff.mccabe]
max-complexity = 10

View File

@ -57,9 +57,3 @@ exclude =
images* images*
scripts* scripts*
tests* tests*
[flake8]
ignore = W503
max-line-length = 88
max-complexity = 10
select = B,C,E,F,W,T4,B9