Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f2f1d96

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

File tree

Expand file treeCollapse file tree

2 files changed

+22
-21
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+22
-21
lines changed

‎.coveragerc

Copy file name to clipboardExpand all lines: .coveragerc
-21Lines changed: 0 additions & 21 deletions
This file was deleted.

‎pyproject.toml

Copy file name to clipboardExpand all lines: pyproject.toml
+22Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.