mirror of
https://github.com/turnstonelabs/turnstone.git
synced 2026-08-28 06:44:51 -06:00
fix: exclude build/vendor/VCS directories from search tool (#226)
* fix: exclude build/vendor/VCS directories from search tool grep -rn recursed into .git, node_modules, target, __pycache__, etc. producing hundreds of noise hits from generated content. Add --exclude-dir flags for common directories that should never appear in search results. * fix: glob egg-info pattern and add vendor exclude Copilot review: .egg-info misses turnstone.egg-info (named dirs), use *.egg-info glob. Also add vendor to the exclude list.
This commit is contained in:
@@ -4285,6 +4285,21 @@ class ChatSession:
|
||||
"-m",
|
||||
"200", # max matches per file
|
||||
"--color=never", # no ANSI codes in output
|
||||
# Skip common build/vendor/VCS directories
|
||||
"--exclude-dir=.git",
|
||||
"--exclude-dir=node_modules",
|
||||
"--exclude-dir=target",
|
||||
"--exclude-dir=__pycache__",
|
||||
"--exclude-dir=.mypy_cache",
|
||||
"--exclude-dir=.ruff_cache",
|
||||
"--exclude-dir=.pytest_cache",
|
||||
"--exclude-dir=dist",
|
||||
"--exclude-dir=build",
|
||||
"--exclude-dir=*.egg-info",
|
||||
"--exclude-dir=.tox",
|
||||
"--exclude-dir=.venv",
|
||||
"--exclude-dir=venv",
|
||||
"--exclude-dir=vendor",
|
||||
"--",
|
||||
pattern,
|
||||
path, # -- prevents pattern as flag
|
||||
|
||||
Reference in New Issue
Block a user