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:
Mikael Hugo 2026-05-01 23:49:46 +02:00
parent e7519e904d
commit 3d8e8c5d57

View file

@ -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",