Skip to content

Commit

Permalink
add coverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Nov 19, 2022
1 parent 665640f commit 69e79ff
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,20 @@ known_first_party = [
addopts = "-raXs --durations 10 --color=yes --doctest-modules"
asyncio_mode = "auto"

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]

[tool.mypy]
python_version = 3.9
check_untyped_defs = true
Expand Down

0 comments on commit 69e79ff

Please sign in to comment.