From c582abbbcf7cb8e76f02fe87bb3d6a31fc44fff7 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 15 Sep 2021 00:16:25 -0400 Subject: 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. --- .flake8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.flake8') diff --git a/.flake8 b/.flake8 index 569b26b..dceae29 100644 --- a/.flake8 +++ b/.flake8 @@ -1,5 +1,5 @@ [flake8] -ignore = +extend-ignore = # E241: multiple spaces after ':' E241, # E251: unexpected spaces around keyword / parameter equals -- cgit v1.1