From 2985a6150a78c677d9bedb380a7950b04636dda3 Mon Sep 17 00:00:00 2001 From: Alec Koumjian Date: Mon, 20 May 2024 10:00:19 -0400 Subject: [PATCH] When using pyargs, you have to specify module to get coverage --- pyproject.toml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 16ab4cb8..37f218b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ typecheck = "mypy --strict ./src/adam_core" test = "pytest --benchmark-disable {args}" doctest = "pytest --doctest-plus --doctest-only" benchmark = "pytest --benchmark-only" -coverage = "pytest --cov --cov-report xml" +coverage = "pytest --cov=adam_core --cov-report=xml" [project.urls] @@ -66,22 +66,18 @@ coverage = "pytest --cov --cov-report xml" [project.optional-dependencies] dev = [ - "pdm", - "pytest", - "pytest-cov", - "pytest-benchmark", - "ruff", + "adam-pyoorb @ git+https://github.com/B612-Asteroid-Institute/adam-pyoorb.git@main", "black", + "ipython", "isort", "mypy", - "pytest", - "pytest-cov", + "pdm", "pytest-benchmark", + "pytest-cov", "pytest-doctestplus", "pytest-mock", + "pytest", "ruff", - "ipython", - "adam-pyoorb @ git+https://github.com/B612-Asteroid-Institute/adam-pyoorb.git@main", ] [tool.black]