Skip to content

Commit 5e2d8b3

Browse files
authored
fix: exclude __pycache__ nested in codemods dir (#680)
1 parent d32ba2d commit 5e2d8b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/codegen/cli/workspace/initialize_workspace.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ def modify_gitignore(codegen_folder: Path):
117117
"# Keep codemods",
118118
"!codemods/",
119119
"!codemods/**",
120+
"",
121+
"# Explicitly ignore pycache in excluded codemod directory",
122+
"codemods/**/__pycache__/",
120123
]
121124

122125
# Write or update .gitignore

0 commit comments

Comments
 (0)