Skip to content

Commit 72b7b60

Browse files
committed
build: Remove .coveragerc, use pyproject.toml
1 parent 79580eb commit 72b7b60

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

.coveragerc

Lines changed: 0 additions & 20 deletions
This file was deleted.

pyproject.toml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ docs = [
9595
"sphinxext-rediraffe",
9696
"myst_parser",
9797
"furo",
98-
"gp-libs"
98+
"gp-libs",
9999
]
100100
test = ["pytest", "pytest-rerunfailures", "pytest-mock", "pytest-watcher"]
101101
coverage = ["codecov", "coverage", "pytest-cov"]
@@ -108,6 +108,28 @@ libtmux = "libtmux.pytest_plugin"
108108
[tool.mypy]
109109
strict = true
110110

111+
[tool.coverage.run]
112+
branch = true
113+
parallel = true
114+
omit = [
115+
"*/_compat.py",
116+
"docs/conf.py",
117+
]
118+
119+
[tool.coverage.report]
120+
show_missing = true
121+
skip_covered = true
122+
exclude_lines = [
123+
"pragma: no cover",
124+
"def __repr__",
125+
"raise NotImplementedError",
126+
"return NotImplemented",
127+
"def parse_args",
128+
"if TYPE_CHECKING:",
129+
"if t.TYPE_CHECKING:",
130+
"@overload( |$)",
131+
]
132+
111133
[build-system]
112134
requires = ["poetry_core>=1.0.0", "setuptools>50"]
113135
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)