Skip to content

Commit c60d345

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

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

.coveragerc

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

pyproject.toml

Lines changed: 20 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,25 @@ libtmux = "libtmux.pytest_plugin"
108108
[tool.mypy]
109109
strict = true
110110

111+
[tool.coverage.run]
112+
branch = true
113+
parallel = true
114+
omit = [
115+
"tests/*",
116+
"docs/conf.py",
117+
"*/_vendor/*",
118+
"*/_*",
119+
]
120+
121+
[tool.coverage.report]
122+
exclude_lines = [
123+
"pragma: no cover",
124+
"def __repr__",
125+
"raise NotImplementedError",
126+
"if __name__ == .__main__.:",
127+
"def parse_args",
128+
]
129+
111130
[build-system]
112131
requires = ["poetry_core>=1.0.0", "setuptools>50"]
113132
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)