diff --git a/Makefile b/Makefile index 15db5f0..4597a0d 100644 --- a/Makefile +++ b/Makefile @@ -91,7 +91,6 @@ test-data-conda-dot-conda-packages: test: pytest \ --cov pydistcheck \ - --cov-fail-under=98 \ ./tests .PHONY: test-local @@ -99,7 +98,6 @@ test-local: PYTHONPATH=src \ pytest \ --cov=src/pydistcheck \ - --cov-fail-under=98 \ --cov-report="term" \ --cov-report="html:htmlcov" \ ./tests diff --git a/pyproject.toml b/pyproject.toml index f29bcb8..2ca7b76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,6 +68,13 @@ requires = [ ] build-backend = "setuptools.build_meta" +[tool.coverage.report] +fail_under = 98.00 +exclude_also = [ + # skip type-checking blocks when calculating code coverage + "if TYPE_CHECKING:" +] + [tool.isort] line_length = 88 profile = "black"