Skip to content

Commit

Permalink
🔧 update coveragerc
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Oct 25, 2024
1 parent 08242af commit 837d82b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
branch = True
source = .
omit =
./exam.py
./exam*.py
./test.py
./nepattern/context.pyi
./nepattern/func.py
./nepattern/*.pyi

[report]
Expand Down
2 changes: 1 addition & 1 deletion nepattern/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def GetItem(
def match(self, input_) -> T:
try:
return _match(input_)[key]
except Exception as e:
except Exception as e: # pragma: no cover
if default is not None:
return default
raise e
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test = {composite = ["coverage run -m pytest -vv", "coverage xml", "coverage rep
[tool.coverage.run]
branch = true
source = ["."]
omit = ["test.py", "./nepattern/context.pyi"]
omit = ["test.py", "./nepattern/*.pyi", "./nepattern/func.py"]

[tool.coverage.report]

Expand Down

0 comments on commit 837d82b

Please sign in to comment.