12345678910111213141516171819202122232425262728293031323334353637383940 |
- [tox]
- envlist = py35,py36,py37
- skip_missing_interpreters = True
- skipsdist = True
- minversion = 3.10.0
- [testenv]
- usedevelop = True
- deps = -rtest_requirements.txt
- whitelist_externals =
- find
- sh
- install_command =
- sh scripts/pip {opts} {packages}
- commands_pre =
- find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete
- commands =
- pytest {posargs}
- py36,py37: black --check .
- isort --recursive --check-only --settings-path setup.cfg .
- flake8 borgmatic tests
- [testenv:black]
- basepython = python3.7
- commands =
- black {posargs} .
- [testenv:test]
- commands =
- pytest {posargs}
- [testenv:end-to-end]
- deps = -rtest_requirements.txt
- commands =
- pytest {posargs} --no-cov tests/end-to-end
- [testenv:isort]
- deps = {[testenv]deps}
- commands =
- isort {posargs:--recursive} --settings-path setup.cfg .
|