Skip to content

Commit f2f1d96

Browse files
committed
build(coverage): Migrate .coveragerc to pyroject.toml
1 parent 032008e commit f2f1d96

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

.coveragerc

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

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,28 @@ libvcs = "libvcs.pytest_plugin"
133133
[tool.mypy]
134134
strict = true
135135

136+
[tool.coverage.run]
137+
branch = true
138+
parallel = true
139+
omit = [
140+
"*/_compat.py",
141+
"docs/conf.py",
142+
]
143+
144+
[tool.coverage.report]
145+
show_missing = true
146+
skip_covered = true
147+
exclude_lines = [
148+
"pragma: no cover",
149+
"def __repr__",
150+
"raise NotImplementedError",
151+
"return NotImplemented",
152+
"def parse_args",
153+
"if TYPE_CHECKING:",
154+
"if t.TYPE_CHECKING:",
155+
"@overload( |$)",
156+
]
157+
136158
[build-system]
137159
requires = ["poetry_core>=1.0.0"]
138160
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)