diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 13:54:44 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 13:54:44 -0700 |
commit | be82253e5189504be2ffd26e2be7480c517ae6e3 (patch) | |
tree | ef19a6badb8071dafd87c9bdddc2ea152a1f908f /python | |
parent | 02cac8f857fe21474ab25aa7150bed2ac5b970d5 (diff) | |
download | sandcrawler-be82253e5189504be2ffd26e2be7480c517ae6e3.tar.gz sandcrawler-be82253e5189504be2ffd26e2be7480c517ae6e3.zip |
tweak flake8 config
Diffstat (limited to 'python')
-rw-r--r-- | python/.flake8 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/python/.flake8 b/python/.flake8 index 0f91a75..d270f3a 100644 --- a/python/.flake8 +++ b/python/.flake8 @@ -1,6 +1,15 @@ [flake8] select = C,E,F,W,ANN -ignore = F405,F403,W503,E231,E203,E501,E226,E711,E713,ANN101,ANN204,ANN102 -max-complexity = 20 +# TODO: C901 is complexity, should be re-enabled at some point +# TODO: ANN201,ANN001,ANN202,ANN206,ANN205 are core annotations, should be enabled +# TODO: E251,W504,E126,E125 are unfortunate yapf behaviors; could try to work around them? +# ANN003 is just type annotation on, eg, **kwargs +# E266 disallows multiple #, eg in section dividers +ignore = E266,F405,F403,W503,E231,E203,E501,E226,E711,E713,E265,ANN101,ANN204,ANN102,C901,ANN201,ANN001,ANN202,ANN206,ANN003,ANN205,E251,W504,E126,E125 +per-file-ignores = + sandcrawler/__init__.py: F401 + tests/*.py: ANN201,ANN001 + sandcrawler/ia.py: E402 exclude = .git,__pycache__,.venv,scripts/ max-line-length = 96 +max-complexity = 30 |