From 4676f6f83c988eaaf79ffd6d0eee1606b76b0b09 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Nov 2021 16:42:40 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - https://github.com/ambv/black → https://github.com/psf/black - [github.com/psf/black: 026c81b83454f176a9f9253cbfb70be2c159d822 → 21.11b1](https://github.com/psf/black/compare/026c81b83454f176a9f9253cbfb70be2c159d822...21.11b1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 249a621..2d29ce7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: -- repo: https://github.com/ambv/black - rev: 026c81b83454f176a9f9253cbfb70be2c159d822 +- repo: https://github.com/psf/black + rev: 21.11b1 hooks: - id: black language_version: python3.8 From 106f1592468f33c65988c2995c95cf27664d28c9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Nov 2021 16:42:48 +0000 Subject: [PATCH 2/2] [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. """