diff --git a/Makefile b/Makefile index 7cc090ba..39980a55 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ checks: tests ruff mypy bandit ## Run all checks (unit tests, ruff, mypy, bandi .PHONY: tests tests: ## Run unit tests @echo "Running tests..." - $(PYTHON) -m pytest tests + $(PYTHON) -m pytest --cov=shhh tests .PHONY: yapf yapf: ## Format python code with yapf diff --git a/pyproject.toml b/pyproject.toml index 71a672c4..9be695c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,3 +31,13 @@ split_all_top_level_comma_separated_values = true split_before_dict_set_generator = true split_before_dot = true split_complex_comprehension = true + +[tool.coverage.report] +fail_under = 80 +exclude_also = [ + "pragma: no cover", + "if TYPE_CHECKING:" +] + +[tool.coverage.run] +source = ["."]