Skip to content

Commit 8ff88d6

Browse files
chore: exclude .git directories from module checks
1 parent 1b2852e commit 8ff88d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/check_modules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ def check_modules():
323323
)
324324

325325
for file_path in sorted(module_directory_path.rglob("*")):
326+
if ".git" in file_path.parts:
327+
continue
326328
if file_path.is_dir():
327329
# Explanation for .count("node_modules") == 1: If there is a node_modules directory, there are probably others in it with that name. There does not have to be an additional message for this.
328330
if (

0 commit comments

Comments
 (0)