MiNode/tox.ini

46 lines
807 B
INI
Raw Permalink Normal View History

2021-03-07 22:41:13 +01:00
[tox]
envlist = reset,py3{6,7,8,9,10,11},stats
2021-03-07 22:41:13 +01:00
skip_missing_interpreters = true
[testenv]
deps = -rrequirements.txt
2021-03-07 22:41:13 +01: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 22:41:13 +01: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 14:26:25 +02:00
bandit -r --exit-zero -x tests minode
2021-03-07 22:41:13 +01:00
[testenv:stats]
deps = coverage
2021-03-07 22:41:13 +01: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