2
0

tox.ini 829 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [tox]
  2. env_list = py38,py39,py310,py311,py312
  3. skip_missing_interpreters = True
  4. package = editable
  5. min_version = 4.0
  6. [testenv]
  7. deps =
  8. -r test_requirements.txt
  9. whitelist_externals =
  10. find
  11. sh
  12. passenv = COVERAGE_FILE
  13. commands =
  14. pytest {posargs}
  15. 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. package = editable
  27. deps =
  28. -r test_requirements.txt
  29. pymongo==4.4.1
  30. .
  31. pass_env = COVERAGE_FILE
  32. commands =
  33. pytest {posargs} --no-cov tests/end-to-end
  34. [testenv:isort]
  35. deps = {[testenv]deps}
  36. commands =
  37. isort --settings-path setup.cfg .
  38. [testenv:codespell]
  39. deps = {[testenv]deps}
  40. commands =
  41. codespell --write-changes