1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
[flake8]
select = C,E,F,W,ANN
# ANN003 is annotation on, eg, **kwargs
# ANN101 is annotation on 'self' (why would that be wanted?)
# ANN204 is annotation on '__init__()'
# E265,E266 are restrictions on comments ('#')
# E501 is line-too-long, which we enforce with yapf
# TODO: C901 is complexity, should be re-enabled at some point
# TODO: E251,W504,E126,E125,W503 are unfortunate yapf behaviors; could try to work around them?
ignore = ANN003,ANN101,ANN204,E265,E266,E501,C901,E251,W504,E126,E125,W503
per-file-ignores =
sandcrawler/__init__.py: F401
sandcrawler/ia.py: E402
tests/*.py: ANN201,ANN001,F403,F405
*_tool.py,sandcrawler_worker.py: ANN201,ANN001,ANN202,ANN206,ANN205,F403,F405
scripts: ANN201,ANN001,ANN202,ANN206,ANN205
exclude = .git,__pycache__,.venv,scripts/
max-line-length = 96
max-complexity = 30
|