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