MiNode/tox.ini

46 lines
808 B
INI
Raw Normal View History

2021-03-07 21:41:13 +00:00
[tox]
envlist = reset,py{36,37,38,39,310},stats
2021-03-07 21:41:13 +00:00
skip_missing_interpreters = true
[testenv]
deps = -rrequirements.txt
2021-03-07 21:41:13 +00:00
commands =
coverage run -a -m tests
[testenv:lint-basic]
deps = flake8
commands =
flake8 minode --count --select=E9,F63,F7,F82 --show-source --statistics
2021-03-07 21:41:13 +00:00
[testenv:reset]
deps =
-rrequirements.txt
bandit
flake8
pylint
commands =
coverage erase
flake8 minode --count --statistics
pylint minode --exit-zero --rcfile=tox.ini
2021-08-02 12:26:25 +00:00
bandit -r --exit-zero -x tests minode
2021-03-07 21:41:13 +00:00
[testenv:stats]
deps = coverage
2021-03-07 21:41:13 +00:00
commands =
coverage report
coverage xml
[coverage:run]
source = minode
omit =
tests.py
*/tests/*
[coverage:report]
ignore_errors = true
[pylint.main]
disable = invalid-name,consider-using-f-string,fixme
max-args = 8
max-attributes = 8