Migrate flake8 config to pyproject.toml
This commit is contained in:
@@ -5,6 +5,7 @@ repos:
|
|||||||
rev: "6.0.0"
|
rev: "6.0.0"
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
|
additional_dependencies: [Flake8-pyproject]
|
||||||
# stages: [push]
|
# stages: [push]
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
|
|||||||
@@ -93,3 +93,18 @@ max-complexity = 12
|
|||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
[tool.ruff.per-file-ignores]
|
||||||
"tests/*" = ["S"]
|
"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",
|
||||||
|
]
|
||||||
|
|||||||
@@ -37,17 +37,3 @@ python_requires = >=3.9
|
|||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
freqtrade = freqtrade.main:main
|
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user