Skip to content

Commit

Permalink
Tweaked pytest/coverage setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverandrich committed Oct 6, 2024
1 parent 57e5131 commit b8b104a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,21 @@ ban-relative-imports = "all"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"
pythonpath = [".", "src"]
django_find_project = false
markers = ["mock_network_and_subprocess"]

# Coverage
[tool.coverage.run]
source = ["django_tailwind_cli"]
source = ["src"]
branch = true
parallel = true

[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
show_missing = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"raise NotImplementedError",
"pass",
"if __name__ == .__main__.:",
]

0 comments on commit b8b104a

Please sign in to comment.