Use tox for testing inside a container #1884
|
@ -8,6 +8,7 @@ max-line-length = 119
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 119
|
max-line-length = 119
|
||||||
|
exclude = bitmessagecli.py,bitmessagecurses,bitmessageqt,tests,umsgpack
|
||||||
ignore = E722,F841,W503
|
ignore = E722,F841,W503
|
||||||
# E722: pylint is preferred for bare-except
|
# E722: pylint is preferred for bare-except
|
||||||
# F841: pylint is preferred for unused-variable
|
# F841: pylint is preferred for unused-variable
|
||||||
|
|
12
tox.ini
12
tox.ini
|
@ -23,8 +23,16 @@ skip_install = true
|
||||||
commands = python pybitmessage/bitmessagemain.py -t
|
commands = python pybitmessage/bitmessagemain.py -t
|
||||||
|
|
||||||
[testenv:reset]
|
[testenv:reset]
|
||||||
deps = coverage
|
deps =
|
||||||
commands = coverage erase
|
coverage
|
||||||
|
bandit
|
||||||
|
flake8
|
||||||
|
commands =
|
||||||
|
coverage erase
|
||||||
|
bandit -r --exit-zero -s B105,B301,B411,B413,B608 \
|
||||||
|
-x checkdeps.*,bitmessagecurses,bitmessageqt,tests pybitmessage
|
||||||
|
flake8 pybitmessage --count --select=E9,F63,F7,F82 \
|
||||||
|
--show-source --statistics
|
||||||
|
|
||||||
[testenv:stats]
|
[testenv:stats]
|
||||||
deps = coverage
|
deps = coverage
|
||||||
|
|
Reference in New Issue
Block a user