Skip to content

Commit

Permalink
add @overload to coverage exclude_lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Dec 23, 2023
1 parent 5f89835 commit 9dc2d0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ relative_files = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:"
"if TYPE_CHECKING:",
"@overload",
]

[tool.tox]
Expand All @@ -85,8 +86,9 @@ skip_missing_interpreters = true
minversion = 4.0
[testenv]
deps = coverage
extras = test
commands = python -m pytest {posargs}
commands = coverage run -p -m pytest {posargs}
usedevelop = true
[testenv:{py37-,py38-,py39-,py310-,py311-,py312-,}pyright]
Expand Down

0 comments on commit 9dc2d0e

Please sign in to comment.