Skip to content

Commit

Permalink
chore: ignore coverage on return __all__
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Oct 14, 2024
1 parent f414277 commit 5d1f651
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ testpaths = [

[tool.coverage]
run.source = ["check_sdist"]
report.exclude_also = [
"return __all__",
]


[tool.mypy]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,5 +259,5 @@ def test_unknown_backend():

subprocess.run(["git", "add", "."], check=True)
subprocess.run(["git", "commit", "-m", "Initial commit"], check=True)
with pytest.raises(ValueError, match="Unknown backend: unknown") as excinfo:
with pytest.raises(ValueError, match="Unknown backend: unknown"):
compare(Path(), isolated=True, verbose=True)

0 comments on commit 5d1f651

Please sign in to comment.