Skip to content

Commit 3292a0b

Browse files
committed
Move coverage config to pyproject.toml
1 parent dd7b253 commit 3292a0b

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

.coveragerc

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

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ select = [
4040
"PERF",
4141
]
4242

43+
[tool.coverage.run]
44+
branch = true
45+
46+
[tool.coverage.report]
47+
# Regexes for lines to exclude from consideration
48+
exclude_lines = [
49+
"pragma: no cover",
50+
# Ignore non-runnable code
51+
"if __name__ == .__main__.:",
52+
"pass",
53+
]
54+
55+
# Only check coverage for source files
56+
include = [
57+
"ocu/**/*.py",
58+
]
59+
4360
[tool.mypy]
4461
disallow_untyped_defs = true
4562

0 commit comments

Comments
 (0)