Simple, configuration-driven backup software for servers and workstations https://torsion.org/borgmatic/
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
809B

  1. [tox]
  2. envlist = py35,py36,py37,py38
  3. skip_missing_interpreters = True
  4. skipsdist = True
  5. minversion = 3.14.0
  6. [testenv]
  7. usedevelop = True
  8. deps = -rtest_requirements.txt
  9. whitelist_externals =
  10. find
  11. sh
  12. commands_pre =
  13. find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete
  14. commands =
  15. pytest {posargs}
  16. py36,py37,py38: black --check .
  17. isort --recursive --check-only --settings-path setup.cfg .
  18. flake8 borgmatic tests
  19. [testenv:black]
  20. commands =
  21. black {posargs} .
  22. [testenv:test]
  23. commands =
  24. pytest {posargs}
  25. [testenv:end-to-end]
  26. deps = -rtest_requirements.txt
  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 .