Skip to content

Commit b8b104a

Browse files
committed
Tweaked pytest/coverage setup.
1 parent 57e5131 commit b8b104a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

pyproject.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,21 @@ ban-relative-imports = "all"
134134
[tool.pytest.ini_options]
135135
DJANGO_SETTINGS_MODULE = "tests.settings"
136136
pythonpath = [".", "src"]
137-
django_find_project = false
138137
markers = ["mock_network_and_subprocess"]
139138

140139
# Coverage
141140
[tool.coverage.run]
142-
source = ["django_tailwind_cli"]
141+
source = ["src"]
143142
branch = true
143+
parallel = true
144144

145145
[tool.coverage.report]
146-
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
146+
show_missing = true
147+
exclude_lines = [
148+
"pragma: no cover",
149+
"def __repr__",
150+
"if self.debug:",
151+
"raise NotImplementedError",
152+
"pass",
153+
"if __name__ == .__main__.:",
154+
]

0 commit comments

Comments
 (0)