We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2e5aee commit 06b28f6Copy full SHA for 06b28f6
pytest_filecov/plugin/gitlist.py
@@ -3,14 +3,13 @@
3
import subprocess
4
5
6
-
7
class GitLsFiles:
8
def __init__(self, dirs: Sequence[str]):
9
self.dirs = dirs
10
11
def __iter__(self) -> Iterable[str]:
12
- cmd = ['git', 'ls-files', '-z']
+ cmd = ["git", "ls-files", "-z"]
13
cmd.extend(self.dirs)
14
proc = subprocess.run(cmd, stdout=subprocess.PIPE, check=True)
15
- names = proc.stdout.split(b'\x00')
+ names = proc.stdout.split(b"\x00")
16
return sorted([name.decode() for name in names if name]).__iter__()
pytest_filecov/plugin/types.py
@@ -12,7 +12,7 @@ def start(self):
@abstractmethod
def stop(self) -> Set[str]:
"""Stop watching access events.
+
Returns all paths known to have been accessed while
17
the watcher was active.
18
"""
0 commit comments