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]
|
||||
max-line-length = 88
|
||||
max-complexity = 25
|
||||
extend-ignore =
|
||||
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
|
||||
rev: 5.0.4
|
||||
hooks:
|
||||
- id: flake8
|
||||
args:
|
||||
- --ignore=E203,W503
|
||||
- --max-complexity=25
|
||||
- --max-line-length=88
|
||||
- id: flake8 # See .flake8 for args
|
||||
additional_dependencies:
|
||||
- flake8-bugbear
|
||||
- flake8-builtins
|
||||
|
|
Loading…
Reference in New Issue
Block a user