Skip to content

Commit

Permalink
Exclude TYPE_CHECKING blocks from coverage
Browse files Browse the repository at this point in the history
This might become the default in the future, see:

- nedbat/coveragepy#831
  • Loading branch information
marcospri committed May 21, 2024
1 parent e4e3c21 commit 200d20a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ show_missing = true
precision = 2
fail_under = 100.00
skip_covered = true
exclude_also = [
# # TYPE_CHECKING block is only executed while running mypy
"if TYPE_CHECKING:"
]

[tool.pylint.main]
jobs = 0 # Use one process for CPU.
Expand Down

0 comments on commit 200d20a

Please sign in to comment.