Skip to content

Commit

Permalink
Merge pull request #1278 from MegaIng/cleanup_may2023_cov_py
Browse files Browse the repository at this point in the history
Add exclude in coverage for `if TYPE_CHECKING:` branches
  • Loading branch information
erezsh authored May 25, 2023
2 parents abddb1c + 004efa7 commit 41853ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ exclude = [
[[tool.mypy.overrides]]
module = [ "js2py" ]
ignore_missing_imports = true

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:"
]

0 comments on commit 41853ff

Please sign in to comment.