diff --git a/pyproject.toml b/pyproject.toml index 7e9408c..05bfcbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,13 @@ Source = "https://github.com/sloria/sphinx-issues" [dependency-groups] test = ["pytest"] -dev = [{ include-group = "test" }, "tox", "tox-uv", "pre-commit>=4.5,<5.0"] +lint = ["pre-commit>=4.5,<5.0"] +dev = [ + { include-group = "test" }, + { include-group = "lint" }, + "tox", + "tox-uv", +] [build-system] requires = ["flit_core<4"] diff --git a/tox.ini b/tox.ini index e7a7920..711d4c1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,19 +1,22 @@ [tox] +requires = tox-uv envlist = lint,py{310,311,312,313,314},py310-lowest [testenv] +runner = uv-venv-lock-runner dependency_groups = test deps = lowest: sphinx==8.1.0 commands = pytest {posargs} [testenv:lint] -deps = pre-commit~=4.5 +dependency_groups = lint skip_install = true commands = pre-commit run --all-files ; Below tasks are for development only (not run in CI) [testenv:watch-readme] +runner = uv-venv-runner deps = restview skip_install = true commands = restview README.rst diff --git a/uv.lock b/uv.lock index 79cbaa4..94cbff2 100644 --- a/uv.lock +++ b/uv.lock @@ -650,6 +650,9 @@ dev = [ { name = "tox" }, { name = "tox-uv" }, ] +lint = [ + { name = "pre-commit" }, +] test = [ { name = "pytest" }, ] @@ -664,6 +667,7 @@ dev = [ { name = "tox" }, { name = "tox-uv" }, ] +lint = [{ name = "pre-commit", specifier = ">=4.5,<5.0" }] test = [{ name = "pytest" }] [[package]]