File tree Expand file tree Collapse file tree
{{cookiecutter.project_name}} Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,11 +72,26 @@ scripts.build = "sphinx-build -M html docs docs/_build {args}"
7272scripts.open = " python -m webbrowser -t docs/_build/html/index.html"
7373scripts.clean = " git clean -fdX -- {args:docs}"
7474
75+ # Test the lowest and highest supported Python versions with normal deps
7576[[tool .hatch .envs .hatch-test .matrix ]]
77+ deps = [ " stable" ]
7678python = [ " 3.10" , " 3.13" ]
79+
80+ # Test the newest supported Python version also with pre-release deps
81+ [[tool .hatch .envs .hatch-test .matrix ]]
82+ deps = [ " pre" ]
83+ python = [ " 3.13" ]
84+
7785[tool .hatch .envs .hatch-test ]
7886features = [ " test" ]
7987
88+ [tool .hatch .envs .hatch-test .overrides ]
89+ # If the matrix variable `deps` is set to "pre",
90+ # set the environment variable `UV_PRERELEASE` to "allow".
91+ matrix.deps.env-vars = [
92+ { key = " UV_PRERELEASE" , value = " allow" , if = [ " pre" ] },
93+ ]
94+
8095[tool .ruff ]
8196line-length = 120
8297src = [ " src" ]
You can’t perform that action at this time.
0 commit comments