Skip to content

Commit

Permalink
fixup! feat(missing): Write missing class logic to detect all __init_…
Browse files Browse the repository at this point in the history
…_.py
  • Loading branch information
MortalHappiness committed Oct 25, 2023
1 parent 40ce72f commit adf165b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit adf165b

Please sign in to comment.