Skip to content

Commit 340f89c

Browse files
committed
build: Remove .coveragerc, use pyproject.toml
1 parent 695dbdc commit 340f89c

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

.coveragerc

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

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,28 @@ lint = [
119119
"types-docutils",
120120
]
121121

122+
[tool.coverage.run]
123+
branch = true
124+
source = [
125+
"tmuxp",
126+
]
127+
omit = [
128+
"tests/*",
129+
"*/_vendor/*",
130+
"*/_*",
131+
"pkg/*",
132+
"*/log.py",
133+
]
134+
135+
[tool.coverage.report]
136+
exclude_lines = [
137+
"pragma: no cover",
138+
"def __repr__",
139+
"raise NotImplementedError",
140+
"if __name__ == .__main__.:",
141+
"def parse_args",
142+
]
143+
122144
[build-system]
123145
requires = ["poetry_core>=1.0.0"]
124146
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)