tox.ini 909 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [tox]
  2. env_list = py39,py310,py311,py312,py313
  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 .
  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. system_site_packages = True
  28. deps =
  29. -r test_requirements.txt
  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 .
  38. [testenv:codespell]
  39. deps = {[testenv]deps}
  40. commands =
  41. codespell --write-changes
  42. [flake8]
  43. max-line-length = 100
  44. extend-ignore = E203,E501,W503
  45. exclude = *.*/*
  46. multiline-quotes = '''
  47. docstring-quotes = '''