tox.ini 692 B

12345678910111213141516171819202122232425262728293031323334353637
  1. [tox]
  2. envlist = py36,py37,py38,py39
  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: black --check .
  16. isort --check-only --settings-path setup.cfg .
  17. flake8 borgmatic tests
  18. [testenv:black]
  19. commands =
  20. black {posargs} .
  21. [testenv:test]
  22. commands =
  23. pytest {posargs}
  24. [testenv:end-to-end]
  25. deps = -rtest_requirements.txt
  26. passenv = COVERAGE_FILE
  27. commands =
  28. pytest {posargs} --no-cov tests/end-to-end
  29. [testenv:isort]
  30. deps = {[testenv]deps}
  31. commands =
  32. isort --settings-path setup.cfg .