tox.ini 845 B

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