tox.ini 934 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. [tox]
  2. env_list = py310,py311,py312,py313,py314
  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]
  33. deps = []
  34. skip_install = true
  35. commands =
  36. ruff check --diff {posargs}
  37. [testenv:lint-fix]
  38. deps = []
  39. skip_install = true
  40. commands =
  41. ruff check --fix {posargs}
  42. [testenv:format]
  43. deps = []
  44. skip_install = true
  45. commands =
  46. ruff format {posargs}
  47. [testenv:spell]
  48. deps = {[testenv]deps}
  49. commands =
  50. codespell --write-changes