2021-03-07 22:41:13 +01:00
|
|
|
[tox]
|
2022-09-23 01:23:14 +02:00
|
|
|
envlist = reset,py{36,37,38,39,310},stats
|
2021-03-07 22:41:13 +01:00
|
|
|
skip_missing_interpreters = true
|
|
|
|
|
|
|
|
[testenv]
|
2022-04-25 01:32:59 +02:00
|
|
|
deps = -rrequirements.txt
|
2021-03-07 22:41:13 +01:00
|
|
|
commands =
|
|
|
|
coverage run -a -m tests
|
|
|
|
|
2022-04-25 01:32:59 +02:00
|
|
|
[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]
|
2022-04-25 01:32:59 +02:00
|
|
|
deps =
|
2022-09-23 01:23:14 +02:00
|
|
|
-rrequirements.txt
|
2022-04-25 01:32:59 +02:00
|
|
|
bandit
|
|
|
|
flake8
|
|
|
|
pylint
|
2021-08-01 16:51:22 +02:00
|
|
|
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]
|
2022-04-25 01:32:59 +02:00
|
|
|
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
|
2021-08-01 16:51:22 +02:00
|
|
|
|
2023-08-02 04:11:59 +02:00
|
|
|
[pylint.main]
|
2023-08-14 05:05:29 +02:00
|
|
|
disable = invalid-name,consider-using-f-string,fixme
|
2023-10-14 02:43:22 +02:00
|
|
|
max-args = 8
|
|
|
|
max-attributes = 8
|