Skip to content

Commit 509ed2d

Browse files
FishyGitHubUserMICHAEL CASTLE
authored andcommitted
Fix ignore venv in build_directory_md.py (TheAlgorithms#11156)
Co-authored-by: MICHAEL CASTLE <[email protected]>
1 parent 1de6b36 commit 509ed2d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: scripts/build_directory_md.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66

77
def good_file_paths(top_dir: str = ".") -> Iterator[str]:
88
for dir_path, dir_names, filenames in os.walk(top_dir):
9-
dir_names[:] = [d for d in dir_names if d != "scripts" and d[0] not in "._"]
9+
dir_names[:] = [
10+
d
11+
for d in dir_names
12+
if d != "scripts" and d[0] not in "._" and "venv" not in d
13+
]
1014
for filename in filenames:
1115
if filename == "__init__.py":
1216
continue
File renamed without changes.

0 commit comments

Comments
 (0)