Skip to content

Commit

Permalink
Add coverage for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Sep 25, 2023
1 parent 851bc91 commit f67bc6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ lint: ## Run pep8, black, mypy linters.

.PHONY: test
test: ## Run pytest primarily.
pytest
pytest

.PHONY: coverage
coverage:
coverage run -m pytest
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dev = [
"pyright >= 1.1.325",
"pytest >= 7.4.0",
"mypy >= 1.0.0",
"coverage[toml] >= 7.3",
]

[tool.setuptools_scm]
Expand Down Expand Up @@ -69,3 +70,7 @@ useLibraryCodeForTypes = true
pythonVersion = "3.10"
pythonPlatform = "Linux"
include = ["sqlelf", "tests"]

[tool.coverage.run]
omit = ["sqlelf/_version.py", "sqlelf/**/__init__.py", "tests/**/__init__.py"]
branch = true

0 comments on commit f67bc6c

Please sign in to comment.