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:
Dhruv Manilawala 2022-10-14 20:04:44 +05:30 committed by GitHub
parent 26fe4c6539
commit e40c7b4bf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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