Use tox for testing inside a container #1884

Closed
g1itch wants to merge 8 commits from ci-tox into v0.6
2 changed files with 11 additions and 2 deletions
Showing only changes of commit b67f86146e - Show all commits

View File

@ -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
View File

@ -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