Replace `flake8` with `Ruff`.
This commit is contained in:
parent
8b3b79bba2
commit
c77ae27880
|
@ -19,12 +19,10 @@ repos:
|
|||
- id: isort
|
||||
args: ["--profile", "black"]
|
||||
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 6.0.0
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.0.261
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies:
|
||||
- flake8-bugbear
|
||||
- id: ruff
|
||||
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
|
|
|
@ -19,3 +19,21 @@ exclude = '''
|
|||
| venv
|
||||
)/
|
||||
'''
|
||||
|
||||
[tool.ruff]
|
||||
ignore = [
|
||||
"B905",
|
||||
"E501",
|
||||
]
|
||||
line-length = 88
|
||||
select = [
|
||||
"B",
|
||||
"B9",
|
||||
"C",
|
||||
"E",
|
||||
"F",
|
||||
"W",
|
||||
]
|
||||
|
||||
[tool.ruff.mccabe]
|
||||
max-complexity = 10
|
||||
|
|
Loading…
Reference in New Issue