Simple, configuration-driven backup software for servers and workstations (fork)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
731 B

  1. [tox]
  2. envlist = py35,py36,py37,py38
  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. py36,py37,py38: black --check .
  16. isort --recursive --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 {posargs:--recursive} --settings-path setup.cfg .