tox.ini 822 B

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