[tox] download = true envlist = py3{15,14,13,12,11} pypy3.11 # Do not include the following so they only run when explicitly requested: # benchmark # coverage # docs # lint skip_missing_interpreters = true # https://hynek.me/articles/turbo-charge-tox/ package = wheel wheel_build_env = .pkg [testenv] runner = uv-venv-lock-runner passenv = # https://docs.pytest.org/en/stable/example/simple.html PYTEST_ADDOPTS # https://docs.pytest.org/en/7.1.x/reference/reference.html#envvar-FORCE_COLOR FORCE_COLOR # https://hypothesis.readthedocs.io/en/latest/settings.html#hypothesis.settings.print_blob # https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables CI allowlist_externals = bash commands = ty check pytest [testenv:benchmark] commands = pytest -c /dev/null -n0 --benchmark-autosave microbenchmarks.py [testenv:coverage] commands = coverage run -m pytest coverage combine coverage report [testenv:docs] dependency_groups = docs commands = sphinx-build -TWn --keep-going -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html [testenv:lint] deps = skip_install = true allowlist_externals = prek commands = prek --all-files --verbose --show-diff-on-failure