aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-03 16:45:30 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-03 16:52:44 -0700
commitee840a44990c02012955be860db5933493ea4b8a (patch)
treef447d3f82db7d4398426111f7488ef5f08b56ecf
parentefcc947482e9f281bb9c3f3484c29d2c8deffe09 (diff)
downloadfatcat-ee840a44990c02012955be860db5933493ea4b8a.tar.gz
fatcat-ee840a44990c02012955be860db5933493ea4b8a.zip
enable type annotation checking with flake8 by default ('make lint')
-rw-r--r--python/.flake86
1 files changed, 2 insertions, 4 deletions
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