Skip to content

Commit bb82d6a

Browse files
authored
build: Remove .coveragerc, use pyproject.toml (#824)
2 parents 695dbdc + c59869b commit bb82d6a

File tree

3 files changed

+26
-20
lines changed

3 files changed

+26
-20
lines changed

.coveragerc

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

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force
3535
- 0.15.6 (#823, pytest fixes, packaging improvements)
3636
- 0.15.3 (#821, pytest plugin improvements, root-level
3737
conftest.py)
38+
- Move `.coveragerc` -> `pyproject.toml` (#824)
3839

3940
### Packaging
4041

pyproject.toml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,27 @@ lint = [
119119
"types-docutils",
120120
]
121121

122-
[build-system]
123-
requires = ["poetry_core>=1.0.0"]
124-
build-backend = "poetry.core.masonry.api"
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+
]
125143

126144
[[tool.mypy.overrides]]
127145
module = [
@@ -134,3 +152,7 @@ module = [
134152
"bpython",
135153
]
136154
ignore_missing_imports = true
155+
156+
[build-system]
157+
requires = ["poetry_core>=1.0.0"]
158+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)