flake8: extend the ignore list, do not override

Some things are disabled by default because most people are not
interested in them. But (non-obviously) adding a list of ignores to the
flake8 configuration file will actually turn back on anything you didn't
explicitly specify.

This reduces the number of flake8 warnings by about 100, a vast chunk of
which are

E704 multiple statements on one line (def)

which turn out to actually be T.overload or typing definitions with

def func(): ...

which is understandably quite reasonable to permit.
This commit is contained in:
Eli Schwartz 2021-09-15 00:16:25 -04:00
parent 52c4df1ba7
commit c582abbbcf
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
[flake8]
ignore =
extend-ignore =
# E241: multiple spaces after ':'
E241,
# E251: unexpected spaces around keyword / parameter equals