chore: split dependency groups

This commit is contained in:
Matteo Bernardini
2025-09-03 11:45:29 +08:00
committed by Lars Immisch
parent 6822cffcc8
commit 38d0882379
4 changed files with 14 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
.PHONY: lint test .PHONY: lint test
lint: lint:
uv run pyright uv run --group lint pyright
uv run stubtest uv run --group lint stubtest
test: test:
uv run tests/test.py uv run tests/test.py

View File

@@ -3,7 +3,7 @@
# You can set these variables from the command line. # You can set these variables from the command line.
SPHINXOPTS = SPHINXOPTS =
SPHINXBUILD = sphinx-build SPHINXBUILD = uv run --group doc sphinx-build
PAPER = PAPER =
# Internal variables. # Internal variables.

View File

@@ -62,8 +62,10 @@ before-all = "ci/setup_cibuildwheel.sh"
[dependency-groups] [dependency-groups]
dev = [ lint = [
"mypy>=1.17.1", "mypy>=1.17.1",
"pyright>=1.1.403", "pyright>=1.1.403",
]
doc = [
"sphinx>=8.1.3", "sphinx>=8.1.3",
] ]

14
uv.lock generated
View File

@@ -1,5 +1,5 @@
version = 1 version = 1
revision = 2 revision = 3
requires-python = ">=3.10" requires-python = ">=3.10"
resolution-markers = [ resolution-markers = [
"python_full_version >= '3.11'", "python_full_version >= '3.11'",
@@ -287,20 +287,22 @@ version = "0.11.0"
source = { editable = "." } source = { editable = "." }
[package.dev-dependencies] [package.dev-dependencies]
dev = [ doc = [
{ name = "mypy" },
{ name = "pyright" },
{ name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, { 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'" }, { 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]
[package.metadata.requires-dev] [package.metadata.requires-dev]
dev = [ doc = [{ name = "sphinx", specifier = ">=8.1.3" }]
lint = [
{ name = "mypy", specifier = ">=1.17.1" }, { name = "mypy", specifier = ">=1.17.1" },
{ name = "pyright", specifier = ">=1.1.403" }, { name = "pyright", specifier = ">=1.1.403" },
{ name = "sphinx", specifier = ">=8.1.3" },
] ]
[[package]] [[package]]