mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
refactor: move flake8 config (#7167)
* refactor: move flake8 config * Update .pre-commit-config.yaml Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
26fe4c6539
commit
e40c7b4bf1
5
.flake8
5
.flake8
|
@ -1,3 +1,8 @@
|
||||||
[flake8]
|
[flake8]
|
||||||
|
max-line-length = 88
|
||||||
|
max-complexity = 25
|
||||||
extend-ignore =
|
extend-ignore =
|
||||||
A003 # Class attribute is shadowing a python builtin
|
A003 # Class attribute is shadowing a python builtin
|
||||||
|
# Formatting style for `black`
|
||||||
|
E203 # Whitespace before ':'
|
||||||
|
W503 # Line break occurred before a binary operator
|
||||||
|
|
|
@ -35,11 +35,7 @@ repos:
|
||||||
- repo: https://github.com/PyCQA/flake8
|
- repo: https://github.com/PyCQA/flake8
|
||||||
rev: 5.0.4
|
rev: 5.0.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8 # See .flake8 for args
|
||||||
args:
|
|
||||||
- --ignore=E203,W503
|
|
||||||
- --max-complexity=25
|
|
||||||
- --max-line-length=88
|
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- flake8-bugbear
|
- flake8-bugbear
|
||||||
- flake8-builtins
|
- flake8-builtins
|
||||||
|
@ -51,7 +47,7 @@ repos:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
args:
|
args:
|
||||||
- --ignore-missing-imports
|
- --ignore-missing-imports
|
||||||
- --install-types # See mirrors-mypy README.md
|
- --install-types # See mirrors-mypy README.md
|
||||||
- --non-interactive
|
- --non-interactive
|
||||||
additional_dependencies: [types-requests]
|
additional_dependencies: [types-requests]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user