Skip to content

Commit 26c15be

Browse files
committed
Add coverage configuration
1 parent 2e64ffd commit 26c15be

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ clean:
1919
-rm -rf bin lib share pyvenv.cfg
2020

2121
coverage:
22-
python3 -m coverage run --source=cstruct setup.py test && python3 -m coverage report -m
22+
python3 -m coverage run setup.py test && python3 -m coverage report -m
2323

2424
.PHONY: docs
2525
docs:

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
[tool.black]
22
line-length = 132
3+
4+
[tool.coverage.run]
5+
source = ["cstruct"]
6+
7+
[tool.coverage.report]
8+
exclude_lines = [ "# pragma: no cover", "if TYPE_CHECKING:" ]

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
coverage
1+
coverage[toml]
22
flake8
33
mypy
44
tox

0 commit comments

Comments
 (0)