2015-05-30 12:03:28 +12:00
|
|
|
[flake8]
|
2016-05-29 13:33:20 +02:00
|
|
|
max-line-length = 140
|
2016-05-29 11:43:29 +02:00
|
|
|
max-complexity = 25
|
2020-08-26 23:33:15 +02:00
|
|
|
ignore = E251,E252,C901,W292,W503,W504,W605,E722,E741,E126,F541
|
2020-12-14 23:52:33 +01:00
|
|
|
exclude = mitmproxy/contrib/*,test/mitmproxy/data/*,release/build/*
|
2016-10-19 14:25:11 +13:00
|
|
|
addons = file,open,basestring,xrange,unicode,long,cmp
|
2015-09-28 10:59:10 +02:00
|
|
|
|
2016-09-24 21:01:48 -07:00
|
|
|
[tool:pytest]
|
2022-03-15 18:33:46 +01:00
|
|
|
asyncio_mode = auto
|
2016-01-27 10:10:14 +01:00
|
|
|
testpaths = test
|
2016-06-25 11:27:58 +02:00
|
|
|
addopts = --capture=no --color=yes
|
2016-02-18 13:24:17 +01:00
|
|
|
|
|
|
|
[coverage:run]
|
2016-11-02 10:54:08 +13:00
|
|
|
branch = False
|
2016-06-02 14:44:06 +12:00
|
|
|
omit = *contrib*, *tnetstring*, *platform*, *main.py
|
2016-02-18 13:24:17 +01:00
|
|
|
|
|
|
|
[coverage:report]
|
|
|
|
show_missing = True
|
|
|
|
exclude_lines =
|
|
|
|
pragma: no cover
|
2020-07-30 09:07:35 +02:00
|
|
|
raise NotImplementedError
|
|
|
|
raise AssertionError
|
2019-11-18 05:19:06 +01:00
|
|
|
if typing.TYPE_CHECKING:
|
|
|
|
if TYPE_CHECKING:
|
2020-07-16 15:00:41 +02:00
|
|
|
@overload
|
2017-02-15 00:27:14 +01:00
|
|
|
|
2019-11-16 14:56:01 +01:00
|
|
|
[mypy]
|
|
|
|
ignore_missing_imports = True
|
2021-02-03 23:00:41 +01:00
|
|
|
files = mitmproxy,examples/addons,release
|
2019-11-16 14:56:01 +01:00
|
|
|
|
2017-12-18 09:33:14 +01:00
|
|
|
[mypy-mitmproxy.contrib.*]
|
2019-10-06 14:41:46 +02:00
|
|
|
ignore_errors = True
|
|
|
|
|
|
|
|
[mypy-tornado.*]
|
2019-11-16 14:56:01 +01:00
|
|
|
ignore_errors = True
|
|
|
|
|
|
|
|
[mypy-test.*]
|
2017-12-18 09:33:14 +01:00
|
|
|
ignore_errors = True
|
|
|
|
|
2021-02-09 01:05:02 +01:00
|
|
|
# https://github.com/python/mypy/issues/3004
|
|
|
|
[mypy-http-modify-form,http-trailers]
|
|
|
|
ignore_errors = True
|
|
|
|
|
2017-02-15 00:27:14 +01:00
|
|
|
[tool:full_coverage]
|
|
|
|
exclude =
|
|
|
|
mitmproxy/tools/
|
2018-05-24 17:10:50 +12:00
|
|
|
release/hooks
|
|
|
|
|
2017-02-15 18:52:32 +01:00
|
|
|
[tool:individual_coverage]
|
|
|
|
exclude =
|
2020-12-15 23:50:16 +01:00
|
|
|
mitmproxy/addons/onboarding.py
|
2020-12-12 14:33:37 +01:00
|
|
|
mitmproxy/connections.py
|
2017-02-15 18:52:32 +01:00
|
|
|
mitmproxy/contentviews/base.py
|
Grpc contentview (#4851)
* Partial gRPC contentview prototype, not linted, no tests, not as add-on
* Linted (flake8)
* Save dev state
* Rewrote of protobuf parser, use decoding strategy, reduced rendered data. Parser uses generators
* minor cleanup
* fix: preferred encoding was provided as function instead of value
* flake8: line length
* Backlinked message tree objects, temporary debug out
* Partial implementation of gRPC definitions. Save state to fix a cras (data invalidate in edit mode)
* hack: deal with missing exception handling for generator based content views
* gRPC/Protoparser descriptions (with test code)
* replaced manual gzip decoding with mitmproxy.net.encoding.decode
* Refactored typing imports
* Reafctoring
* distinguish request vs response definitions, separate view config from parser config
* Code cleaning, moved customized protobuf definitions to example addon
* final cleanup
* changelog
* Stubs for tests
* Fixed render_riority of addon example
* Started adding tests
* Work on tests
* mypy
* Added pseudo encoder to tests, to cover special decodings
* Example addon test added
* finalized tests, no 100 percent coverage possible, see comments un uncovered code
* minor adjustments
* fixup tests
* Typos
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2021-10-12 13:32:56 +02:00
|
|
|
mitmproxy/contentviews/grpc.py
|
2017-02-15 18:52:32 +01:00
|
|
|
mitmproxy/ctx.py
|
2022-03-29 17:00:13 +02:00
|
|
|
mitmproxy/dns.py
|
2017-02-15 18:52:32 +01:00
|
|
|
mitmproxy/exceptions.py
|
|
|
|
mitmproxy/flow.py
|
2017-03-20 13:13:40 +13:00
|
|
|
mitmproxy/io/io.py
|
|
|
|
mitmproxy/io/tnetstring.py
|
2017-02-15 18:52:32 +01:00
|
|
|
mitmproxy/log.py
|
|
|
|
mitmproxy/master.py
|
|
|
|
mitmproxy/net/check.py
|
|
|
|
mitmproxy/net/http/cookies.py
|
|
|
|
mitmproxy/net/http/message.py
|
|
|
|
mitmproxy/net/http/multipart.py
|
|
|
|
mitmproxy/net/tcp.py
|
2017-09-04 03:29:54 +02:00
|
|
|
mitmproxy/net/tls.py
|
2022-03-31 01:45:37 +02:00
|
|
|
mitmproxy/net/udp.py
|
2017-02-15 18:52:32 +01:00
|
|
|
mitmproxy/options.py
|
|
|
|
mitmproxy/proxy/config.py
|
|
|
|
mitmproxy/proxy/server.py
|
2020-12-14 20:00:35 +01:00
|
|
|
mitmproxy/proxy/layers/tls.py
|
2017-02-15 18:52:32 +01:00
|
|
|
mitmproxy/utils/bits.py
|
2022-03-19 16:35:40 +01:00
|
|
|
mitmproxy/utils/vt_codes.py
|
2018-05-24 17:10:50 +12:00
|
|
|
release/hooks
|