mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
update flake8 and mypy
This commit is contained in:
parent
bf9159937c
commit
997b496a68
@ -1,7 +1,7 @@
|
||||
[flake8]
|
||||
max-line-length = 140
|
||||
max-complexity = 25
|
||||
ignore = E251,E252,C901,W292,W503,W504,W605,E722,E741,E126
|
||||
ignore = E251,E252,C901,W292,W503,W504,W605,E722,E741,E126,F541
|
||||
exclude = mitmproxy/contrib/*,test/mitmproxy/data/*,release/build/*,mitmproxy/io/proto/*
|
||||
addons = file,open,basestring,xrange,unicode,long,cmp
|
||||
|
||||
|
6
tox.ini
6
tox.ini
@ -23,7 +23,7 @@ commands =
|
||||
bash -c "mitmdump --version 2>&1 | grep 'mitmproxy requires Python 3.6'"
|
||||
|
||||
[testenv:flake8]
|
||||
deps = flake8>=3.7.8,<3.8
|
||||
deps = flake8==3.8
|
||||
commands =
|
||||
flake8 --jobs 8 mitmproxy pathod examples test release
|
||||
|
||||
@ -32,7 +32,7 @@ commands =
|
||||
python ./test/filename_matching.py
|
||||
|
||||
[testenv:mypy]
|
||||
deps = mypy>=0.761,<0.762
|
||||
deps = mypy==0.782
|
||||
commands =
|
||||
mypy .
|
||||
|
||||
@ -52,7 +52,7 @@ passenv = CI_* GITHUB_* AWS_* TWINE_* DOCKER_*
|
||||
deps =
|
||||
-rrequirements.txt
|
||||
pyinstaller==3.5
|
||||
twine==3.1.1
|
||||
twine==3.2.0
|
||||
awscli
|
||||
commands =
|
||||
mitmdump --version
|
||||
|
Loading…
Reference in New Issue
Block a user