mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-02 18:13:04 +00:00
Migrate flake8 config to pyproject.toml
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
14
setup.cfg
14
setup.cfg
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user