From 6d4e9c62a203e2305679bbbd15dba1bbf81d6346 Mon Sep 17 00:00:00 2001 From: Isaac To Date: Tue, 20 Jan 2026 10:39:14 -0800 Subject: [PATCH 1/3] build(hatch-env): remove `default-args` in `[tool.hatch.envs.tests]` `default-args` is only relevant in `[tool.hatch.envs.hatch-test]` which is used to configure the `hatch test` command and its associate env. (ref: https://hatch.pypa.io/latest/config/internal/testing/#default-arguments) --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4a8b46e..6cc5cd9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,7 +103,6 @@ run = "python -m dump_things_service.main {args}" python = ["3.11", "3.12"] [tool.hatch.envs.tests] -default-args = ["dump_things_service"] extra-dependencies = [ "dump_things_service", "freezegun", -- 2.52.0 From ded211f90c8a4590dbf96096339945188eee784f Mon Sep 17 00:00:00 2001 From: Isaac To Date: Tue, 20 Jan 2026 10:59:59 -0800 Subject: [PATCH 2/3] build(hatch env): remove `"dump_things_service"` dependency in tests env The containing project is installed in a hatch env in editable mode by default. (ref: https://hatch.pypa.io/latest/config/environment/overview/#dev-mode) --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6cc5cd9..96e7f12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,7 +104,6 @@ python = ["3.11", "3.12"] [tool.hatch.envs.tests] extra-dependencies = [ - "dump_things_service", "freezegun", "httpx", "pytest", -- 2.52.0 From b86ff9a574cece3829a5c9bad1936587595be372 Mon Sep 17 00:00:00 2001 From: Isaac To Date: Tue, 20 Jan 2026 11:34:54 -0800 Subject: [PATCH 3/3] build(hatch env): provide default args to script in tests hatch env The default args allows pytest to locate the tests more precisely and efficiently --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 96e7f12..1d5d155 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,7 +112,7 @@ extra-dependencies = [ ] [tool.hatch.envs.tests.scripts] -run = 'python -m pytest {args}' +run = 'python -m pytest {args:dump_things_service/tests dump_things_service/backends/tests}' [tool.ruff] extend-exclude = [ -- 2.52.0