Skip to content

Commit

Permalink
Update scripts/create_zip.py
Browse files Browse the repository at this point in the history
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
  • Loading branch information
kairos-xx and sourcery-ai[bot] authored Jan 3, 2025
1 parent 3d61a52 commit 50f9dae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/create_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ def get_files_to_zip() -> List[str]:
for filename in filenames:
filepath = os.path.join(root, filename)
# Skip if the file matches any ignore pattern
if (not any(ignore in filepath for ignore in CUSTOM_IGNORE)
and filename not in CUSTOM_IGNORE):
if (
all(ignore not in filepath for ignore in CUSTOM_IGNORE)
and filename not in CUSTOM_IGNORE
):
files.append(filepath)

return files
Expand Down

0 comments on commit 50f9dae

Please sign in to comment.