-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsetup.cfg
66 lines (57 loc) · 1.91 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
66
[flake8]
#
# Handled by black:
# E501: Line too long
# E127: continuation line over-indented for visual indent
# E128: continuation line under-indented for visual indent
# E203 whitespace before ':'
# W503 line break before binary operator
#
# Misc:
# E266 too many leading '#' for block comment
#
# Currently not passing errors:
# E722,E402
ignore = E501,E127,E128,E203,W503,E266,E402,E722,F541
max-line-length = 100
exclude = .git,docs,restkit/compat.py,env,venv,.ropeproject,_sandbox,.tox,*_pb2.py,parsec/core/gui/_resources_rc.py,parsec/core/gui/ui/,misc/bench.py,bdb.py,.eggs,build
[coverage:run]
parallel=True
source=parsec
omit =
parsec/core/gui/ui
[coverage:report]
exclude_lines =
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
[tool:pytest]
# Filter warnings
filterwarnings =
# Ignore trio deprecation warnings outside of parsec
ignore:trio|Trio:FutureWarning:
default:trio|Trio:FutureWarning:tests\.(.*)|parsec\.(.*)
# Ignore general deprecation warnings outside of parsec
ignore::DeprecationWarning
default::DeprecationWarning:tests\.(.*)|parsec\.(.*)
# Ignore our todo warnings
ignore:TODO:UserWarning:parsec|tests
markers =
linux: marks tests as linux only
win32: marks tests as Windows only
gui: marks tests as GUI (enable with '--rungui')
slow: marks tests as slow (enable with '--runslow')
mountpoint: marks tests as mountpoint (enable with '--runmountpoint')
diskfull: marks tests as diskfull (enable with '--rundiskfull')
postgresql: marks tests as postgresql only (enable with '--postgresql')
raid0_blockstore
raid1_blockstore
raid5_blockstore
backend_not_populated