2015-03-15 17:14:30 +00:00
|
|
|
[tox]
|
2023-03-16 20:29:37 +00:00
|
|
|
envlist = py37,py38,py39,py310,py311
|
2019-05-14 19:19:56 +00:00
|
|
|
skip_missing_interpreters = True
|
2018-10-01 00:30:04 +00:00
|
|
|
skipsdist = True
|
2019-12-12 05:24:37 +00:00
|
|
|
minversion = 3.14.1
|
2015-03-15 17:14:30 +00:00
|
|
|
|
|
|
|
[testenv]
|
2018-10-01 00:30:04 +00:00
|
|
|
usedevelop = True
|
|
|
|
deps = -rtest_requirements.txt
|
2019-05-19 10:46:32 +00:00
|
|
|
whitelist_externals =
|
|
|
|
find
|
|
|
|
sh
|
2019-12-12 05:24:37 +00:00
|
|
|
passenv = COVERAGE_FILE
|
2018-09-30 05:45:00 +00:00
|
|
|
commands =
|
2019-05-19 21:53:32 +00:00
|
|
|
pytest {posargs}
|
2023-03-16 20:29:37 +00:00
|
|
|
py38,py39,py310,py311: black --check .
|
2020-11-22 22:48:07 +00:00
|
|
|
isort --check-only --settings-path setup.cfg .
|
2019-06-13 17:01:55 +00:00
|
|
|
flake8 borgmatic tests
|
2018-09-30 05:45:00 +00:00
|
|
|
|
|
|
|
[testenv:black]
|
|
|
|
commands =
|
2019-11-05 17:36:30 +00:00
|
|
|
black {posargs} .
|
2018-09-30 06:15:18 +00:00
|
|
|
|
2019-05-19 11:07:18 +00:00
|
|
|
[testenv:test]
|
|
|
|
commands =
|
|
|
|
pytest {posargs}
|
|
|
|
|
2018-10-01 00:30:04 +00:00
|
|
|
[testenv:end-to-end]
|
2018-10-04 05:36:25 +00:00
|
|
|
deps = -rtest_requirements.txt
|
2019-12-12 05:24:37 +00:00
|
|
|
passenv = COVERAGE_FILE
|
2018-10-01 00:30:04 +00:00
|
|
|
commands =
|
2019-06-13 17:01:55 +00:00
|
|
|
pytest {posargs} --no-cov tests/end-to-end
|
2019-05-13 21:38:43 +00:00
|
|
|
|
|
|
|
[testenv:isort]
|
|
|
|
deps = {[testenv]deps}
|
|
|
|
commands =
|
2020-11-22 22:48:07 +00:00
|
|
|
isort --settings-path setup.cfg .
|