aboutsummaryrefslogtreecommitdiffstats
path: root/python/.flake8
blob: 9c9aabe4258326bd4cdd7cf9f9a162006b20d9e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[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 black
# W503,E203 are allowed by black
# TODO: C901 is complexity, should be re-enabled at some point
ignore = ANN003,ANN101,ANN204,E265,E266,E501,C901,W503,E203
per-file-ignores =
    sandcrawler/__init__.py: F401
    sandcrawler/ia.py: E402
    tests/*.py: ANN201,ANN001,F403,F405
    # TODO: add more annotations to CLI scripts
    *_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