Skip to content

Commit 6ef1ecc

Browse files
Merge pull request #130 from r1chardj0n3s/branch-coverage
Enable branch coverage
2 parents 6247451 + b8b01fa commit 6ef1ecc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pip_check_reqs/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def pyfiles(root: Path) -> Generator[Path, None, None]:
126126
else:
127127
msg = f"{root} is not a python file or directory"
128128
raise ValueError(msg)
129-
elif root.is_dir():
129+
else:
130130
for item in root.rglob("*.py"):
131131
yield item.absolute()
132132

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ ignore = [
121121

122122
line-length = 79
123123

124+
[tool.coverage.run]
125+
126+
branch = true
127+
124128
[tool.coverage.report]
125129

126130
exclude_lines = [

0 commit comments

Comments
 (0)