build: swap ruff for flake8

This commit is contained in:
Daylin Morgan 2023-03-08 03:29:34 -06:00
parent ff110f0829
commit 1f11967f3f
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
3 changed files with 12 additions and 11 deletions

View file

@ -16,7 +16,7 @@ repos:
hooks: hooks:
- id: black - id: black
language_version: python language_version: python
- repo: https://github.com/pycqa/flake8 - repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 6.0.0 rev: 'v0.0.245'
hooks: hooks:
- id: flake8 - id: ruff

View file

@ -27,3 +27,12 @@ dev = [
"pre-commit>=3", "pre-commit>=3",
"mypy>=0.991" "mypy>=0.991"
] ]
[tool.ruff]
line-length = 88
ignore = ["E402"]
[tool.mypy]
warn_return_any = true
check_untyped_defs = true
warn_unused_configs = true

View file

@ -1,8 +0,0 @@
[flake8]
max-line-length = 88
ignore = E402, W503
[mypy]
warn_return_any = True
check_untyped_defs = True
warn_unused_configs = True