Moved flake8 config to setup.cfg

This commit is contained in:
Salvador E. Tropea 2022-02-17 16:03:54 -03:00
parent 8b23a0904e
commit 128a10f383
3 changed files with 25 additions and 10 deletions

View File

@ -1,8 +0,0 @@
[flake8]
ignore = E402, E226, E126, W504
max-line-length = 127
max-complexity = 21
exclude = experiments/kicad/v6/
experiments/JLC/
kibot/mcpyrate/
submodules/

View File

@ -60,11 +60,19 @@ repos:
hooks:
- id: autoflake8
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
rev: 4.0.1
hooks:
- id: flake8
exclude: ^kibot/mcpyrate/
args: [--config, .flake8, --count, --statistics]
args: [--count, --statistics]
additional_dependencies:
- flake8-bugbear==22.1.11
- flake8-comprehensions==3.8.0
- flake8_2020==1.6.1
- flake8-docstrings
- mccabe==0.6.1
- pycodestyle==2.8.0
- pyflakes==2.4.0
# Sorting imports is dangerous.
# - repo: https://github.com/PyCQA/isort
# rev: 5.10.1

View File

@ -21,6 +21,21 @@ expand-star-imports = True
ignore-words-list=kibot,tht
quiet-level = 2
[flake8]
ignore = E402, E226, E126, W504
# docstrings - Missing
D1
# docstrings - whitespace
D2
# docstrings - text style (imperative, dot)
D4
max-line-length = 127
max-complexity = 21
exclude = experiments/kicad/v6/
experiments/JLC/
kibot/mcpyrate/
submodules/
[mypy]
exclude = experiments build
ignore_missing_imports = True