add flake8 config
This commit is contained in:
parent
99f5901e3d
commit
0202a9186d
1 changed files with 11 additions and 0 deletions
11
.flake8
Normal file
11
.flake8
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
[flake8]
|
||||||
|
ignore = E203, E266, E501, W503
|
||||||
|
# line length is intentionally set to 80 here because black uses Bugbear
|
||||||
|
# See https://github.com/psf/black/blob/master/README.md#line-length for more details
|
||||||
|
max-line-length = 80
|
||||||
|
max-complexity = 18
|
||||||
|
select = B,C,E,F,W,T4,B9
|
||||||
|
# We need to configure the mypy.ini because the flake8-mypy's default
|
||||||
|
# options don't properly override it, so if we don't specify it we get
|
||||||
|
# half of the config from mypy.ini and half from flake8-mypy.
|
||||||
|
mypy_config = mypy.ini
|
||||||
Loading…
Add table
Add a link
Reference in a new issue