tox.ini 817 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. allowlist_externals =
  10. find
  11. sh
  12. ruff
  13. passenv = COVERAGE_FILE
  14. commands =
  15. pytest {posargs}
  16. ruff check
  17. ruff format --check
  18. codespell
  19. [testenv:test]
  20. commands =
  21. pytest {posargs}
  22. [testenv:end-to-end]
  23. package = editable
  24. system_site_packages = true
  25. deps =
  26. -r test_requirements.txt
  27. .
  28. pass_env = COVERAGE_FILE
  29. commands =
  30. pytest {posargs} --no-cov tests/end-to-end
  31. [testenv:lint]
  32. deps = []
  33. skip_install = true
  34. commands =
  35. ruff check --diff {posargs}
  36. [testenv:format]
  37. deps = []
  38. skip_install = true
  39. commands =
  40. ruff format {posargs}
  41. [testenv:spell]
  42. deps = {[testenv]deps}
  43. commands =
  44. codespell --write-changes