Skip to content

Commit 262d916

Browse files
committed
Fix linting bugs
1 parent 2de5a13 commit 262d916

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_package_generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ def get_all_files_folders(root_path: pathlib.Path) -> set[pathlib.Path]:
2121
file_set: set[pathlib.Path] = set()
2222
for dirpath, _, filenames in os.walk(root_path):
2323
dirpath_path = pathlib.Path(dirpath).relative_to(root_path)
24-
if dirpath_path.name in ["__pycache__"]:
24+
if dirpath_path.name == "__pycache__":
2525
continue
2626

2727
# Add this directory
2828
file_set.update((dirpath_path,))
2929
# Add any files in it
3030
for filename in filenames:
31-
if filename in [".DS_Store"]:
31+
if filename == ".DS_Store":
3232
continue
3333
file_set.update((dirpath_path / filename,))
3434

0 commit comments

Comments
 (0)