2015-03-15 18:14:30 +01:00
|
|
|
[tox]
|
2023-11-07 19:17:55 +01:00
|
|
|
env_list = py38,py39,py310,py311,py312
|
2019-05-14 21:19:56 +02:00
|
|
|
skip_missing_interpreters = True
|
2023-10-24 02:39:27 +02:00
|
|
|
package = editable
|
|
|
|
min_version = 4.0
|
2015-03-15 18:14:30 +01:00
|
|
|
|
|
|
|
[testenv]
|
2023-10-24 02:39:27 +02:00
|
|
|
deps =
|
|
|
|
-r test_requirements.txt
|
2019-05-19 12:46:32 +02:00
|
|
|
whitelist_externals =
|
|
|
|
find
|
|
|
|
sh
|
2019-12-12 06:24:37 +01:00
|
|
|
passenv = COVERAGE_FILE
|
2018-09-30 07:45:00 +02:00
|
|
|
commands =
|
2019-05-19 23:53:32 +02:00
|
|
|
pytest {posargs}
|
2023-11-07 19:11:29 +01:00
|
|
|
black --check .
|
2020-11-22 23:48:07 +01:00
|
|
|
isort --check-only --settings-path setup.cfg .
|
2019-06-13 19:01:55 +02:00
|
|
|
flake8 borgmatic tests
|
2023-04-01 20:03:59 +02:00
|
|
|
codespell
|
2018-09-30 07:45:00 +02:00
|
|
|
|
|
|
|
[testenv:black]
|
|
|
|
commands =
|
2019-11-05 18:36:30 +01:00
|
|
|
black {posargs} .
|
2018-09-30 08:15:18 +02:00
|
|
|
|
2019-05-19 13:07:18 +02:00
|
|
|
[testenv:test]
|
|
|
|
commands =
|
|
|
|
pytest {posargs}
|
|
|
|
|
2018-10-01 02:30:04 +02:00
|
|
|
[testenv:end-to-end]
|
2023-10-24 02:39:27 +02:00
|
|
|
package = editable
|
|
|
|
deps =
|
|
|
|
-r test_requirements.txt
|
|
|
|
pymongo==4.4.1
|
2023-04-15 08:22:07 +02:00
|
|
|
.
|
2023-10-24 02:39:27 +02:00
|
|
|
pass_env = COVERAGE_FILE
|
2018-10-01 02:30:04 +02:00
|
|
|
commands =
|
2019-06-13 19:01:55 +02:00
|
|
|
pytest {posargs} --no-cov tests/end-to-end
|
2019-05-13 23:38:43 +02:00
|
|
|
|
|
|
|
[testenv:isort]
|
|
|
|
deps = {[testenv]deps}
|
|
|
|
commands =
|
2020-11-22 23:48:07 +01:00
|
|
|
isort --settings-path setup.cfg .
|
2023-04-01 20:03:59 +02:00
|
|
|
|
|
|
|
[testenv:codespell]
|
|
|
|
deps = {[testenv]deps}
|
|
|
|
commands =
|
|
|
|
codespell --write-changes
|