| [tox] |
| envlist = |
| black |
| pep8 |
| pep8h |
| mypy |
| pylint |
| unit-tests |
| functional-test |
| isolated_build = True |
| |
| |
| [defs] |
| pyfiles = |
| src/sp_rand |
| unit_tests |
| |
| [testenv:black] |
| skip_install = True |
| deps = |
| black >= 22, < 23 |
| commands = |
| black --check {[defs]pyfiles} |
| |
| [testenv:black-reformat] |
| skip_install = True |
| deps = |
| black >= 22, < 23 |
| commands = |
| black {[defs]pyfiles} |
| |
| [testenv:pep8] |
| skip_install = True |
| deps = |
| flake8 |
| commands = |
| flake8 {[defs]pyfiles} |
| |
| [testenv:pep8h] |
| skip_install = True |
| deps = |
| flake8 |
| hacking >= 4 |
| commands = |
| flake8 {[defs]pyfiles} |
| |
| [testenv:mypy] |
| skip_install = True |
| deps = |
| confget >= 4 |
| mypy |
| pytest >= 6 |
| commands = |
| mypy {[defs]pyfiles} |
| |
| [testenv:pylint] |
| skip_install = True |
| deps = |
| confget >= 4 |
| pylint |
| pytest >= 6 |
| storpool >= 6 |
| commands = |
| pylint {[defs]pyfiles} |
| |
| [testenv:unit-tests] |
| deps = |
| pytest >= 6 |
| commands = |
| pytest unit_tests |
| |
| [testenv:functional-test] |
| commands = |
| {toxinidir}/test_functional.sh |