Skip to content

Commit a57796a

Browse files
authored
build: Remove .coveragerc, use pyproject.toml (#443)
2 parents 79580eb + e3f7c8e commit a57796a

File tree

3 files changed

+25
-21
lines changed

3 files changed

+25
-21
lines changed

.coveragerc

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

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ _Maintenance only, no bug fixes or features_
2222

2323
This is handled by poetry's `include` in pyproject.toml.
2424

25+
- Move `.coveragerc` -> `pyproject.toml` (#443)
26+
2527
## libtmux 0.15.5 (2022-09-23)
2628

2729
_Maintenance only, no bug fixes or features_

pyproject.toml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ docs = [
9595
"sphinxext-rediraffe",
9696
"myst_parser",
9797
"furo",
98-
"gp-libs"
98+
"gp-libs",
9999
]
100100
test = ["pytest", "pytest-rerunfailures", "pytest-mock", "pytest-watcher"]
101101
coverage = ["codecov", "coverage", "pytest-cov"]
@@ -108,6 +108,28 @@ libtmux = "libtmux.pytest_plugin"
108108
[tool.mypy]
109109
strict = true
110110

111+
[tool.coverage.run]
112+
branch = true
113+
parallel = true
114+
omit = [
115+
"*/_compat.py",
116+
"docs/conf.py",
117+
]
118+
119+
[tool.coverage.report]
120+
show_missing = true
121+
skip_covered = true
122+
exclude_lines = [
123+
"pragma: no cover",
124+
"def __repr__",
125+
"raise NotImplementedError",
126+
"return NotImplemented",
127+
"def parse_args",
128+
"if TYPE_CHECKING:",
129+
"if t.TYPE_CHECKING:",
130+
"@overload( |$)",
131+
]
132+
111133
[build-system]
112134
requires = ["poetry_core>=1.0.0", "setuptools>50"]
113135
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)