From fcdc5828abb5ba115b011d4847616c00a6083292 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Sep 2021 16:32:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pytest_filecov/plugin/gitlist.py | 5 ++--- pytest_filecov/plugin/types.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pytest_filecov/plugin/gitlist.py b/pytest_filecov/plugin/gitlist.py index e14b748..7cd403e 100644 --- a/pytest_filecov/plugin/gitlist.py +++ b/pytest_filecov/plugin/gitlist.py @@ -3,14 +3,13 @@ import subprocess - class GitLsFiles: def __init__(self, dirs: Sequence[str]): self.dirs = dirs def __iter__(self) -> Iterable[str]: - cmd = ['git', 'ls-files', '-z'] + cmd = ["git", "ls-files", "-z"] cmd.extend(self.dirs) proc = subprocess.run(cmd, stdout=subprocess.PIPE, check=True) - names = proc.stdout.split(b'\x00') + names = proc.stdout.split(b"\x00") return sorted([name.decode() for name in names if name]).__iter__() diff --git a/pytest_filecov/plugin/types.py b/pytest_filecov/plugin/types.py index 37b9ae2..f67c119 100644 --- a/pytest_filecov/plugin/types.py +++ b/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 the watcher was active. """