2015-05-30 00:03:28 +00:00
|
|
|
[flake8]
|
2016-05-29 11:33:20 +00:00
|
|
|
max-line-length = 140
|
2016-05-29 09:43:29 +00:00
|
|
|
max-complexity = 25
|
2020-08-26 21:33:15 +00:00
|
|
|
ignore = E251,E252,C901,W292,W503,W504,W605,E722,E741,E126,F541
|
2018-07-02 13:59:48 +00:00
|
|
|
exclude = mitmproxy/contrib/*,test/mitmproxy/data/*,release/build/*,mitmproxy/io/proto/*
|
2016-10-19 01:25:11 +00:00
|
|
|
addons = file,open,basestring,xrange,unicode,long,cmp
|
2015-09-28 08:59:10 +00:00
|
|
|
|
2016-09-25 04:01:48 +00:00
|
|
|
[tool:pytest]
|
2016-01-27 09:10:14 +00:00
|
|
|
testpaths = test
|
2016-06-25 09:27:58 +00:00
|
|
|
addopts = --capture=no --color=yes
|
2016-02-18 12:24:17 +00:00
|
|
|
|
|
|
|
[coverage:run]
|
2016-11-01 21:54:08 +00:00
|
|
|
branch = False
|
2016-06-02 02:44:06 +00:00
|
|
|
omit = *contrib*, *tnetstring*, *platform*, *main.py
|
2016-02-18 12:24:17 +00:00
|
|
|
|
|
|
|
[coverage:report]
|
|
|
|
show_missing = True
|
|
|
|
exclude_lines =
|
|
|
|
pragma: no cover
|
2020-07-30 07:07:35 +00:00
|
|
|
raise NotImplementedError
|
|
|
|
raise AssertionError
|
2019-11-18 04:19:06 +00:00
|
|
|
if typing.TYPE_CHECKING:
|
|
|
|
if TYPE_CHECKING:
|
2020-07-16 13:00:41 +00:00
|
|
|
@overload
|
2017-02-14 23:27:14 +00:00
|
|
|
|
2019-11-16 13:56:01 +00:00
|
|
|
[mypy]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2017-12-18 08:33:14 +00:00
|
|
|
[mypy-mitmproxy.contrib.*]
|
2019-10-06 12:41:46 +00:00
|
|
|
ignore_errors = True
|
|
|
|
|
|
|
|
[mypy-tornado.*]
|
2019-11-16 13:56:01 +00:00
|
|
|
ignore_errors = True
|
|
|
|
|
|
|
|
[mypy-test.*]
|
2017-12-18 08:33:14 +00:00
|
|
|
ignore_errors = True
|
|
|
|
|
2017-02-14 23:27:14 +00:00
|
|
|
[tool:full_coverage]
|
|
|
|
exclude =
|
2017-08-17 15:42:07 +00:00
|
|
|
mitmproxy/proxy/protocol/base.py
|
|
|
|
mitmproxy/proxy/protocol/http.py
|
|
|
|
mitmproxy/proxy/protocol/http1.py
|
|
|
|
mitmproxy/proxy/protocol/http2.py
|
|
|
|
mitmproxy/proxy/protocol/http_replay.py
|
|
|
|
mitmproxy/proxy/protocol/rawtcp.py
|
|
|
|
mitmproxy/proxy/protocol/tls.py
|
2017-02-14 23:27:14 +00:00
|
|
|
mitmproxy/proxy/root_context.py
|
|
|
|
mitmproxy/proxy/server.py
|
|
|
|
mitmproxy/tools/
|
|
|
|
pathod/pathoc.py
|
|
|
|
pathod/pathod.py
|
|
|
|
pathod/test.py
|
|
|
|
pathod/protocols/http2.py
|
2018-05-24 05:10:50 +00:00
|
|
|
release/hooks
|
|
|
|
|
2017-02-15 17:52:32 +00:00
|
|
|
|
|
|
|
[tool:individual_coverage]
|
|
|
|
exclude =
|
|
|
|
mitmproxy/addons/onboardingapp/app.py
|
2020-07-16 13:00:41 +00:00
|
|
|
mitmproxy/addons/session.py
|
2017-02-15 17:52:32 +00:00
|
|
|
mitmproxy/addons/termlog.py
|
|
|
|
mitmproxy/contentviews/base.py
|
|
|
|
mitmproxy/controller.py
|
|
|
|
mitmproxy/ctx.py
|
|
|
|
mitmproxy/exceptions.py
|
|
|
|
mitmproxy/flow.py
|
2020-07-16 13:00:41 +00:00
|
|
|
mitmproxy/io/db.py
|
2017-03-20 00:13:40 +00:00
|
|
|
mitmproxy/io/io.py
|
2020-07-16 13:00:41 +00:00
|
|
|
mitmproxy/io/protobuf.py
|
2017-03-20 00:13:40 +00:00
|
|
|
mitmproxy/io/tnetstring.py
|
2017-02-15 17:52:32 +00:00
|
|
|
mitmproxy/log.py
|
|
|
|
mitmproxy/master.py
|
|
|
|
mitmproxy/net/check.py
|
|
|
|
mitmproxy/net/http/cookies.py
|
|
|
|
mitmproxy/net/http/headers.py
|
|
|
|
mitmproxy/net/http/message.py
|
|
|
|
mitmproxy/net/http/multipart.py
|
|
|
|
mitmproxy/net/tcp.py
|
2017-09-04 01:29:54 +00:00
|
|
|
mitmproxy/net/tls.py
|
2017-02-15 17:52:32 +00:00
|
|
|
mitmproxy/options.py
|
|
|
|
mitmproxy/proxy/config.py
|
|
|
|
mitmproxy/proxy/modes/http_proxy.py
|
|
|
|
mitmproxy/proxy/modes/reverse_proxy.py
|
|
|
|
mitmproxy/proxy/modes/socks_proxy.py
|
|
|
|
mitmproxy/proxy/modes/transparent_proxy.py
|
|
|
|
mitmproxy/proxy/protocol/base.py
|
|
|
|
mitmproxy/proxy/protocol/http.py
|
|
|
|
mitmproxy/proxy/protocol/http1.py
|
|
|
|
mitmproxy/proxy/protocol/http2.py
|
|
|
|
mitmproxy/proxy/protocol/http_replay.py
|
|
|
|
mitmproxy/proxy/protocol/rawtcp.py
|
|
|
|
mitmproxy/proxy/protocol/tls.py
|
|
|
|
mitmproxy/proxy/root_context.py
|
|
|
|
mitmproxy/proxy/server.py
|
|
|
|
mitmproxy/utils/bits.py
|
|
|
|
pathod/language/actions.py
|
|
|
|
pathod/language/base.py
|
|
|
|
pathod/language/exceptions.py
|
|
|
|
pathod/language/generators.py
|
|
|
|
pathod/language/http.py
|
|
|
|
pathod/language/message.py
|
|
|
|
pathod/log.py
|
|
|
|
pathod/pathoc.py
|
|
|
|
pathod/pathod.py
|
|
|
|
pathod/protocols/http.py
|
|
|
|
pathod/protocols/http2.py
|
|
|
|
pathod/protocols/websockets.py
|
|
|
|
pathod/test.py
|
2018-05-24 05:10:50 +00:00
|
|
|
release/hooks
|