mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 11:03:13 +00:00
tox: mypy checking for entire codebase
Also fix a few linting errors.
This commit is contained in:
parent
cacad8373b
commit
95d9ec88ac
@ -1,4 +1,4 @@
|
|||||||
import typing
|
import typing # noqa
|
||||||
# Low-color themes should ONLY use the standard foreground and background
|
# Low-color themes should ONLY use the standard foreground and background
|
||||||
# colours listed here:
|
# colours listed here:
|
||||||
#
|
#
|
||||||
|
@ -37,7 +37,7 @@ exclude =
|
|||||||
mitmproxy/controller.py
|
mitmproxy/controller.py
|
||||||
mitmproxy/export.py
|
mitmproxy/export.py
|
||||||
mitmproxy/flow.py
|
mitmproxy/flow.py
|
||||||
mitmproxy/io_compat.py
|
mitmproxy/io/compat.py
|
||||||
mitmproxy/master.py
|
mitmproxy/master.py
|
||||||
pathod/pathoc.py
|
pathod/pathoc.py
|
||||||
pathod/pathod.py
|
pathod/pathod.py
|
||||||
@ -57,8 +57,9 @@ exclude =
|
|||||||
mitmproxy/exceptions.py
|
mitmproxy/exceptions.py
|
||||||
mitmproxy/export.py
|
mitmproxy/export.py
|
||||||
mitmproxy/flow.py
|
mitmproxy/flow.py
|
||||||
mitmproxy/io.py
|
mitmproxy/io/io.py
|
||||||
mitmproxy/io_compat.py
|
mitmproxy/io/compat.py
|
||||||
|
mitmproxy/io/tnetstring.py
|
||||||
mitmproxy/log.py
|
mitmproxy/log.py
|
||||||
mitmproxy/master.py
|
mitmproxy/master.py
|
||||||
mitmproxy/net/check.py
|
mitmproxy/net/check.py
|
||||||
|
12
tox.ini
12
tox.ini
@ -27,17 +27,7 @@ commands =
|
|||||||
flake8 --jobs 8 mitmproxy pathod examples test release
|
flake8 --jobs 8 mitmproxy pathod examples test release
|
||||||
python3 test/filename_matching.py
|
python3 test/filename_matching.py
|
||||||
rstcheck README.rst
|
rstcheck README.rst
|
||||||
mypy --ignore-missing-imports --follow-imports=skip \
|
mypy --ignore-missing-imports ./mitmproxy
|
||||||
mitmproxy/addons/ \
|
|
||||||
mitmproxy/addonmanager.py \
|
|
||||||
mitmproxy/optmanager.py \
|
|
||||||
mitmproxy/proxy/protocol/ \
|
|
||||||
mitmproxy/log.py \
|
|
||||||
mitmproxy/tools/dump.py \
|
|
||||||
mitmproxy/tools/web/ \
|
|
||||||
mitmproxy/contentviews/
|
|
||||||
mypy --ignore-missing-imports \
|
|
||||||
mitmproxy/master.py
|
|
||||||
|
|
||||||
[testenv:individual_coverage]
|
[testenv:individual_coverage]
|
||||||
deps =
|
deps =
|
||||||
|
Loading…
Reference in New Issue
Block a user