Skip to content

Commit 9eee828

Browse files
authored
build: Remove .coveragerc, use pyproject.toml (#421)
2 parents 032008e + 5365ebc commit 9eee828

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed

.coveragerc

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

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ URL renamings (#417):
2222
- `default_patterns` -> `patterns`
2323
- `MATCHERS` -> `RULES`
2424

25+
### Packaging
26+
27+
- Migrate `.coveragerc` to `pyproject.toml` (#421)
28+
2529
## libvcs 0.16.5 (2022-09-21)
2630

2731
### Bug fixes

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)