- Add [tool.coverage.run] with source and branch coverage - Add [tool.coverage.report] with exclude patterns and show_missing Closes #43
25 lines
533 B
TOML
25 lines
533 B
TOML
[tool.pytest.ini_options]
|
|
pythonpath = "."
|
|
testpaths = ["tests"]
|
|
asyncio_mode = "auto"
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
norecursedirs = ["tmp", "assets", "node_modules", "dist", "build", "web", "tools"]
|
|
|
|
[tool.coverage.run]
|
|
source = ["src"]
|
|
branch = true
|
|
omit = [
|
|
"src/__pycache__/*",
|
|
"src/*/__pycache__/*",
|
|
]
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"def __repr__",
|
|
"raise NotImplementedError",
|
|
"if __name__ == .__main__.:",
|
|
"if TYPE_CHECKING:",
|
|
]
|
|
show_missing = true
|