Migrate flake8 config to pyproject.toml

This commit is contained in:
Matthias
2023-12-16 20:32:37 +01:00
parent 1d701967b7
commit 6ee0f16e4f
3 changed files with 16 additions and 14 deletions

View File

@@ -5,6 +5,7 @@ repos:
rev: "6.0.0"
hooks:
- id: flake8
additional_dependencies: [Flake8-pyproject]
# stages: [push]
- repo: https://github.com/pre-commit/mirrors-mypy

View File

@@ -93,3 +93,18 @@ max-complexity = 12
[tool.ruff.per-file-ignores]
"tests/*" = ["S"]
[tool.flake8]
# Default from https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore
# minus E226
ignore = ["E121","E123","E126","E24","E704","W503","W504"]
max-line-length = 100
max-complexity = 12
exclude = [
".git",
"__pycache__",
".eggs",
"user_data",
".venv",
".env",
]

View File

@@ -37,17 +37,3 @@ python_requires = >=3.9
[options.entry_points]
console_scripts =
freqtrade = freqtrade.main:main
[flake8]
# Default from https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore
# minus E226
ignore = E121,E123,E126,E24,E704,W503,W504
max-line-length = 100
max-complexity = 12
exclude =
.git,
__pycache__,
.eggs,
user_data,
.venv
.env