From ee840a44990c02012955be860db5933493ea4b8a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Nov 2021 16:45:30 -0700 Subject: enable type annotation checking with flake8 by default ('make lint') --- python/.flake8 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/.flake8 b/python/.flake8 index 10ce9421..0bc06a85 100644 --- a/python/.flake8 +++ b/python/.flake8 @@ -1,14 +1,12 @@ [flake8] select = C,E,F,W,ANN -# ANN003 is annotation on, eg, **kwargs +# ANN002,ANN003 is annotation on, eg, **kwargs # ANN101 is annotation on 'self' # ANN204 is annotation on '__init__()' # E265,E266 are restrictions on comments ('#') # E501 is line-too-long, which we enforce with black # W503,E203 are allowed by black -# TODO: additional ignores while prepping for type annotations -ignore = ANN003,ANN101,ANN204,E265,E266,E501,W503,E203,ANN001,ANN201,ANN205,ANN202,ANN102,ANN002,ANN206 -#ignore = ANN003,ANN101,ANN204,E265,E266,E501,W503,E203 +ignore = ANN002,ANN003,ANN101,ANN204,E265,E266,E501,W503,E203 per-file-ignores = */__init__.py: F401 fatcat_web/__init__.py: E402,F401 -- cgit v1.2.3