Skip to content

Commit

Permalink
Add test config
Browse files Browse the repository at this point in the history
  • Loading branch information
smallwat3r committed Oct 1, 2023
1 parent c458a69 commit 079650c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ["."]

0 comments on commit 079650c

Please sign in to comment.