diff --git a/Makefile b/Makefile index 0ca3ae9..3534075 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ .PHONY: lint test lint: - uv run pyright - uv run stubtest + uv run --group lint pyright + uv run --group lint stubtest test: uv run tests/test.py diff --git a/doc/Makefile b/doc/Makefile index 837d9d8..2b75c06 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -3,7 +3,7 @@ # You can set these variables from the command line. SPHINXOPTS = -SPHINXBUILD = sphinx-build +SPHINXBUILD = uv run --group doc sphinx-build PAPER = # Internal variables. diff --git a/pyproject.toml b/pyproject.toml index f11c59d..07988d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,8 +62,10 @@ before-all = "ci/setup_cibuildwheel.sh" [dependency-groups] -dev = [ +lint = [ "mypy>=1.17.1", "pyright>=1.1.403", +] +doc = [ "sphinx>=8.1.3", ] diff --git a/uv.lock b/uv.lock index f01d147..4044c84 100644 --- a/uv.lock +++ b/uv.lock @@ -1,5 +1,5 @@ version = 1 -revision = 2 +revision = 3 requires-python = ">=3.10" resolution-markers = [ "python_full_version >= '3.11'", @@ -287,20 +287,22 @@ version = "0.11.0" source = { editable = "." } [package.dev-dependencies] -dev = [ - { name = "mypy" }, - { name = "pyright" }, +doc = [ { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, { name = "sphinx", version = "8.2.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, ] +lint = [ + { name = "mypy" }, + { name = "pyright" }, +] [package.metadata] [package.metadata.requires-dev] -dev = [ +doc = [{ name = "sphinx", specifier = ">=8.1.3" }] +lint = [ { name = "mypy", specifier = ">=1.17.1" }, { name = "pyright", specifier = ">=1.1.403" }, - { name = "sphinx", specifier = ">=8.1.3" }, ] [[package]]