From c829855da1e42d6d65c20372597360eb428f7c47 Mon Sep 17 00:00:00 2001 From: Preocts Date: Sun, 10 Aug 2025 15:43:01 -0400 Subject: [PATCH] Rename test dep group to dev A dev should always have the dependencies is this group installed. uv will automatically install the dev group so renaming is the simple solution. --- noxfile.py | 6 +++--- pyproject.toml | 2 +- uv.lock | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/noxfile.py b/noxfile.py index f9c100d..4ec1c8c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -71,7 +71,7 @@ def run_tests_with_coverage(session: nox.Session) -> None: session.posargs.remove("no-config") extra = ["--no-config"] - session.run_install("uv", "sync", "--group", "test", *SYNC_ARGS, *extra) + session.run_install("uv", "sync", *SYNC_ARGS, *extra) coverage = functools.partial(session.run, "uv", "run", *extra, "coverage") @@ -89,7 +89,7 @@ def run_tests_with_coverage(session: nox.Session) -> None: @nox.session(name="combine", python=False) def combine_coverage(session: nox.Session) -> None: """Combine parallel-mode coverage files and produce reports.""" - session.run_install("uv", "sync", "--group", "test", *SYNC_ARGS) + session.run_install("uv", "sync", *SYNC_ARGS) coverage = functools.partial(session.run, "uv", "run", "coverage") @@ -102,7 +102,7 @@ def combine_coverage(session: nox.Session) -> None: @nox.session(name="lint", python=False) def run_linters(session: nox.Session) -> None: """Run code linters, and type checking against all files.""" - session.run_install("uv", "sync", "--group", "test", "--group", "lint", *SYNC_ARGS) + session.run_install("uv", "sync", "--group", "lint", *SYNC_ARGS) for linter_args in LINTERS: session.run("uv", "run", *linter_args) diff --git a/pyproject.toml b/pyproject.toml index 23b8c96..4917ef7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ lint = [ "flake8-pep585", "mypy", ] -test = [ +dev = [ "pytest", "pytest-randomly", "coverage", diff --git a/uv.lock b/uv.lock index 44a1daf..514df0c 100644 --- a/uv.lock +++ b/uv.lock @@ -294,6 +294,11 @@ dependencies = [ ] [package.dev-dependencies] +dev = [ + { name = "coverage" }, + { name = "pytest" }, + { name = "pytest-randomly" }, +] format = [ { name = "black" }, { name = "isort" }, @@ -304,16 +309,16 @@ lint = [ { name = "flake8-pep585" }, { name = "mypy" }, ] -test = [ - { name = "coverage" }, - { name = "pytest" }, - { name = "pytest-randomly" }, -] [package.metadata] requires-dist = [{ name = "httpx" }] [package.metadata.requires-dev] +dev = [ + { name = "coverage" }, + { name = "pytest" }, + { name = "pytest-randomly" }, +] format = [ { name = "black" }, { name = "isort" }, @@ -324,11 +329,6 @@ lint = [ { name = "flake8-pep585" }, { name = "mypy" }, ] -test = [ - { name = "coverage" }, - { name = "pytest" }, - { name = "pytest-randomly" }, -] [[package]] name = "mypy"