borgmatic/tox.ini
Dan Helfman d7323e08ac
All checks were successful
build / test (push) Successful in 5m4s
build / docs (push) Successful in 2m4s
Fix isort invocation referring to gone setup.cfg file (#922).
2024-10-26 20:44:14 -07:00

55 lines
902 B
INI

[tox]
env_list = py38,py39,py310,py311,py312
skip_missing_interpreters = True
package = editable
min_version = 4.0
[testenv]
deps =
-r test_requirements.txt
whitelist_externals =
find
sh
passenv = COVERAGE_FILE
commands =
pytest {posargs}
black --check .
isort --check-only .
flake8 borgmatic tests
codespell
[testenv:black]
commands =
black {posargs} .
[testenv:test]
commands =
pytest {posargs}
[testenv:end-to-end]
package = editable
deps =
-r test_requirements.txt
pymongo==4.4.1
.
pass_env = COVERAGE_FILE
commands =
pytest {posargs} --no-cov tests/end-to-end
[testenv:isort]
deps = {[testenv]deps}
commands =
isort .
[testenv:codespell]
deps = {[testenv]deps}
commands =
codespell --write-changes
[flake8]
max-line-length = 100
extend-ignore = E203,E501,W503
exclude = *.*/*
multiline-quotes = '''
docstring-quotes = '''