Skip to content

Commit

Permalink
Ignore uncovered lines
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Oct 6, 2024
1 parent fa6a343 commit 0bd9535
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ warn_unused_ignores = true

[tool.coverage.run]
branch = true
omit = ["*/setup.py"]
omit = ["*/trustme/__main__.py"]
source = ["trustme"]

[tool.coverage.paths]
Expand All @@ -48,6 +48,6 @@ source = ["src/trustme", "*/trustme", "*\\trustme"]
[tool.coverage.setup]
precision = 1
exclude_lines = [
"pragma: no cover",
"pragma: no cover.*",
"if TYPE_CHECKING:"
]
2 changes: 1 addition & 1 deletion src/trustme/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def main(argv: Optional[List[str]] = None) -> None:
if argv is None:
argv = sys.argv[1:]
argv = sys.argv[1:] # pragma: no cover (used in tests)

parser = argparse.ArgumentParser(prog="trustme")
parser.add_argument(
Expand Down

0 comments on commit 0bd9535

Please sign in to comment.