| 1 | [tox] |
| 2 | envlist = clean, py{38,39,310,311,312}, pylint, flake8, pydocstyle, stats |
| 3 | ignore_basepython_conflict = true |
| 4 | |
| 5 | [testenv:clean] |
| 6 | commands= |
| 7 | coverage erase |
| 8 | |
| 9 | [testenv] |
| 10 | basepython = {env:PYTHON3_PATH:python3} |
| 11 | deps = |
| 12 | -r{toxinidir}/requirements.txt |
| 13 | -r{toxinidir}/requirements_test.txt |
| 14 | commands = |
| 15 | {envbindir}/python -m unittest discover -v [] |
| 16 | coverage run -a setup.py test |
| 17 | |
| 18 | [testenv:pylint] |
| 19 | deps = |
| 20 | -r{toxinidir}/requirements.txt |
| 21 | -r{toxinidir}/requirements_test.txt |
| 22 | commands = |
| 23 | pylint {posargs} rachiopy tests |
| 24 | |
| 25 | [testenv:flake8] |
| 26 | deps = |
| 27 | -r{toxinidir}/requirements.txt |
| 28 | -r{toxinidir}/requirements_test.txt |
| 29 | commands = |
| 30 | flake8 {posargs} |
| 31 | |
| 32 | [testenv:pydocstyle] |
| 33 | deps = |
| 34 | -r{toxinidir}/requirements.txt |
| 35 | -r{toxinidir}/requirements_test.txt |
| 36 | commands = |
| 37 | pydocstyle {posargs:rachiopy tests} |
| 38 | |
| 39 | [testenv:stats] |
| 40 | commands= |
| 41 | coverage report |
| 42 | coverage html |