-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.cfg
65 lines (52 loc) · 1.87 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[build_sphinx]
source-dir = doc/source
build-dir = doc/build
all_files = 1
[tool:pytest]
junit_family=xunit1
addopts = --cov=ait
filterwarnings =
ignore::DeprecationWarning:ait.core.*:
[coverage:run]
omit = */_version.py,*/__init__.py,*/bin/*,*/test/*
[flake8]
extend-exclude = versioneer.py,_version.py,docs,doc,tests,test,setup.py
# Ignoring:
# E203 prevents flake8 from complaining about whitespace around slice
# components. Black formats per PEP8 and flake8 doesn't like some of
# this.
#
# E501 prevents flake8 from complaining line lengths > 79. We will use
# flake8-bugbear's B950 to handle line length lint errors. This trips
# when a line is > max-line-length + 10%.
#
# E402 prevents flake8 complaining about module level imports not appearing
# at the top of a file. We need to run gevent monkeypatching which triggers
# this on every import where that's the case.
extend-ignore = E203, E501, E402
# Selects following test categories:
# D: Docstring errors and warnings
# E, W: PEP8 errors and warnings
# F: PyFlakes codes
# N: PEP8 Naming plugin codes
# B: flake8-bugbear codes
# B***: Specific flake8-bugbear opinionated warnings to trigger
# B902: Invalid first argument used for method. Use self for instance
# methods, and cls for class methods
# B903: Use collections.namedtuple (or typing.NamedTuple) for data classes
# that only set attributes in an __init__ method, and do nothing else.
# B950: Line too long. This is a pragmatic equivalent of pycodestyle's
# E501: it considers "max-line-length" but only triggers when the value
# has been exceeded by more than 10%.
select = E,F,N,W,B,B902,B903,B950
[mypy]
[mypy-gevent.*]
ignore_missing_imports = True
[mypy-zmq.*]
ignore_missing_imports = True
[mypy-bottle.*]
ignore_missing_imports = True
[mypy-jsonschema.*]
ignore_missing_imports = True
[mypy-geventwebsocket.*]
ignore_missing_imports = True