From 3741931b62c3f59547cfc49afcdc5a692a415977 Mon Sep 17 00:00:00 2001 From: Preocts Date: Mon, 11 Aug 2025 23:23:06 -0400 Subject: [PATCH] Remove coverage fail at percentage This gets in the way more times that it is useful. If coverage needs to be enforced it should be done within the CI after a compile, not locally. --- noxfile.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/noxfile.py b/noxfile.py index 4ec1c8c..adc4c44 100644 --- a/noxfile.py +++ b/noxfile.py @@ -8,7 +8,6 @@ # Control factors for finding pieces of the module MODULE_NAME = "module_name" -COVERAGE_FAIL_UNDER = "100" LINT_PATH = "./src" TESTS_PATH = "./tests" @@ -82,7 +81,7 @@ def run_tests_with_coverage(session: nox.Session) -> None: coverage("run", "--parallel-mode", "--module", "pytest", *session.posargs) else: coverage("run", "--module", "pytest", *session.posargs) - coverage("report", "--show-missing", f"--fail-under={COVERAGE_FAIL_UNDER}") + coverage("report", "--show-missing") coverage("html") @@ -94,7 +93,7 @@ def combine_coverage(session: nox.Session) -> None: coverage = functools.partial(session.run, "uv", "run", "coverage") coverage("combine") - coverage("report", "--show-missing", f"--fail-under={COVERAGE_FAIL_UNDER}") + coverage("report", "--show-missing") coverage("html") coverage("json")