This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-12-25/tox.ini

61 lines
1.2 KiB
INI
Raw Normal View History

[tox]
envlist = reset,py{27,27-portable,35,36,38,39,310},stats
skip_missing_interpreters = true
[testenv]
setenv =
BITMESSAGE_HOME = {envtmpdir}
2022-04-07 10:35:38 +02:00
HOME = {envtmpdir}
PYTHONWARNINGS = default
deps = -rrequirements.txt
commands =
python checkdeps.py
coverage run -a src/bitmessagemain.py -t
coverage run -a -m tests
[testenv:lint-basic]
basepython = python3
deps =
bandit
flake8
commands =
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
2022-04-07 10:35:38 +02:00
[testenv:py27]
sitepackages = true
2021-11-21 18:03:29 +01:00
[testenv:py27-doc]
deps =
.[docs]
-r docs/requirements.txt
commands = python setup.py build_sphinx
[testenv:py27-portable]
skip_install = true
commands = python pybitmessage/bitmessagemain.py -t
[testenv:reset]
deps = coverage
commands = coverage erase
[testenv:stats]
deps = coverage
commands =
coverage report
coverage xml
[coverage:run]
source = src
omit =
tests.py
*/tests/*
2022-09-17 03:31:42 +02:00
src/bitmessagekivy/*
src/version.py
src/fallback/umsgpack/*
[coverage:report]
ignore_errors = true