Skip to content

Commit 20f7d26

Browse files
williabyclaude
andcommitted
fix(qlty): escape curly braces in cookiecutter template exclusion pattern
The glob parser interprets `{}` as brace expansion syntax. Escape with backslashes to match the literal directory name `{{cookiecutter.project_slug}}`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 229ce72 commit 20f7d26

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.qlty/qlty.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ exclude_patterns = [
4747
"**/tmp_cleanup/**",
4848
# Exclude cookiecutter template directories (not actual code)
4949
# Note: Template files contain Jinja2 syntax that breaks parsers
50-
"{{cookiecutter.project_slug}}/**",
50+
# Curly braces must be escaped to avoid glob brace expansion
51+
"\\{\\{cookiecutter.project_slug\\}\\}/**",
5152
]
5253

5354
test_patterns = [

0 commit comments

Comments
 (0)