| 1 | [tox] |
| 2 | envlist = check, mypy, py38, report |
| 3 | |
| 4 | [testenv] |
| 5 | passenv = TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* GITHUB_* PYTEST_ADDOPTS COVERALLS_* |
| 6 | extras = test |
| 7 | commands = |
| 8 | python -m pytest -vv |
| 9 | depends = |
| 10 | py38: clean, check |
| 11 | report: py38 |
| 12 | |
| 13 | [flake8] |
| 14 | extend-ignore = E203, W503 |
| 15 | ignore = F841 |
| 16 | |
| 17 | [pytest] |
| 18 | basepython = |
| 19 | py38: python3.8 |
| 20 | python_files = tests/test_*.py |
| 21 | timeout = 480 |
| 22 | |
| 23 | [testenv:check] |
| 24 | basepython = python3.8 |
| 25 | extras = check |
| 26 | ignore_errors=true |
| 27 | commands = |
| 28 | check-manifest {toxinidir} |
| 29 | flake8 multivolumefile tests setup.py |
| 30 | isort --quiet --check-only --diff multivolumefile tests setup.py |
| 31 | |
| 32 | [testenv:mypy] |
| 33 | basepython = python3.8 |
| 34 | extras = type |
| 35 | commands = |
| 36 | mypy multivolumefile/ |
| 37 | |
| 38 | [isort] |
| 39 | known_first_party = multivolumefile |
| 40 | known_third_party = docutils,flake8,pyannotate_runtime,pytest,pytz,setuptools,sphinx,yaml |
| 41 | multi_line_output = 3 |
| 42 | include_trailing_comma = True |
| 43 | force_grid_wrap = 0 |
| 44 | use_parentheses = True |
| 45 | ensure_newline_before_comments = True |
| 46 | line_length = 125 |
| 47 | |
| 48 | [testenv:clean] |
| 49 | deps = coverage[toml]>=5.2 |
| 50 | skip_install = true |
| 51 | commands = coverage erase |
| 52 | |
| 53 | [testenv:coveralls] |
| 54 | deps = |
| 55 | coveralls |
| 56 | skip_install = true |
| 57 | commands = |
| 58 | coveralls [] |
| 59 | |
| 60 | [testenv:report] |
| 61 | basepython = python3.8 |
| 62 | deps = coverage[toml]>=5.2 |
| 63 | skip_install = true |
| 64 | commands = |
| 65 | coverage report |
| 66 | coverage html -d build/htmlcov |
| 67 | |
| 68 | [gh-actions] |
| 69 | python = |
| 70 | 3.8: py38, check |