diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-03 16:45:30 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-03 16:52:44 -0700 |
commit | ee840a44990c02012955be860db5933493ea4b8a (patch) | |
tree | f447d3f82db7d4398426111f7488ef5f08b56ecf /python | |
parent | efcc947482e9f281bb9c3f3484c29d2c8deffe09 (diff) | |
download | fatcat-ee840a44990c02012955be860db5933493ea4b8a.tar.gz fatcat-ee840a44990c02012955be860db5933493ea4b8a.zip |
enable type annotation checking with flake8 by default ('make lint')
Diffstat (limited to 'python')
-rw-r--r-- | python/.flake8 | 6 |
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 |