mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
ee67797c7e
Branch coverage means lots of duplication in tests to hit all cases, and I'm not sure it's worth it. At any rate, let's aim for statement coverage first.
21 lines
440 B
INI
21 lines
440 B
INI
[flake8]
|
|
max-line-length = 140
|
|
max-complexity = 25
|
|
ignore = E251,C901,W503
|
|
exclude = mitmproxy/contrib/*,test/mitmproxy/data/*
|
|
addons = file,open,basestring,xrange,unicode,long,cmp
|
|
|
|
[tool:pytest]
|
|
testpaths = test
|
|
addopts = --capture=no --color=yes
|
|
|
|
[coverage:run]
|
|
branch = False
|
|
omit = *contrib*, *tnetstring*, *platform*, *main.py
|
|
|
|
[coverage:report]
|
|
show_missing = True
|
|
exclude_lines =
|
|
pragma: no cover
|
|
raise NotImplementedError()
|