detection: skip Python tool caches during project scans
Adds __pycache__, .pytest_cache, .mypy_cache, .ruff_cache, .tox, .eggs, and htmlcov to RECURSIVE_SCAN_IGNORED_DIRS so SF doesn't walk into them when scanning project files. These directories can contain thousands of files in mature Python projects and were slowing down detection / scan operations on Python codebases. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e7519e904d
commit
3d8e8c5d57
1 changed files with 9 additions and 0 deletions
|
|
@ -262,8 +262,17 @@ const RECURSIVE_SCAN_IGNORED_DIRS = new Set([
|
|||
".cursor",
|
||||
".vscode",
|
||||
"node_modules",
|
||||
// Python: virtualenvs, bytecode caches, tool caches, package metadata
|
||||
".venv",
|
||||
"venv",
|
||||
"__pycache__",
|
||||
".pytest_cache",
|
||||
".mypy_cache",
|
||||
".ruff_cache",
|
||||
".tox",
|
||||
".eggs",
|
||||
"htmlcov",
|
||||
// Build output / package output
|
||||
"dist",
|
||||
"build",
|
||||
"coverage",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue