tox.ini 838 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [tox]
  2. envlist = py37,py38,py39,py310,py311
  3. skip_missing_interpreters = True
  4. skipsdist = True
  5. minversion = 3.14.1
  6. [testenv]
  7. usedevelop = True
  8. deps = -rtest_requirements.txt
  9. whitelist_externals =
  10. find
  11. sh
  12. passenv = COVERAGE_FILE
  13. commands =
  14. pytest {posargs}
  15. py38,py39,py310,py311: black --check .
  16. isort --check-only --settings-path setup.cfg .
  17. flake8 borgmatic tests
  18. codespell
  19. [testenv:black]
  20. commands =
  21. black {posargs} .
  22. [testenv:test]
  23. commands =
  24. pytest {posargs}
  25. [testenv:end-to-end]
  26. usedevelop = False
  27. deps = -rtest_requirements.txt
  28. .
  29. passenv = COVERAGE_FILE
  30. commands =
  31. pytest {posargs} --no-cov tests/end-to-end
  32. [testenv:isort]
  33. deps = {[testenv]deps}
  34. commands =
  35. isort --settings-path setup.cfg .
  36. [testenv:codespell]
  37. deps = {[testenv]deps}
  38. commands =
  39. codespell --write-changes