From adf165b3514162e4c156920b875a15309a1f06c2 Mon Sep 17 00:00:00 2001 From: Chi-Sheng Liu Date: Wed, 25 Oct 2023 14:27:08 +0800 Subject: [PATCH] fixup! feat(missing): Write missing class logic to detect all __init__.py --- src/missing.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/missing.py b/src/missing.py index 90c6dbd..f99df89 100644 --- a/src/missing.py +++ b/src/missing.py @@ -25,13 +25,13 @@ def __init__(self, exclude: Sequence[str]): exclude = [os.path.normpath(path) for path in exclude] logger.debug(f'{exclude=}') - files_excluded = set() + files_included = set() for file in files: if all([not file.startswith(e) for e in exclude]): - files_excluded.add(file) - logger.debug(f'{files_excluded=}') + files_included.add(file) + logger.debug(f'{files_included=}') - self.files = files_excluded + self.files = files_included def run(self) -> int: """Return 1 if there are missing files, otherwise 0"""