This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 0e11c841f31 Fix IDEA setup to skip .claude directory and add scripts
module (#63607)
0e11c841f31 is described below
commit 0e11c841f3161860439e9cc8b2baee4e6478feb9
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Mar 14 18:26:01 2026 +0100
Fix IDEA setup to skip .claude directory and add scripts module (#63607)
- Add `.claude/` to EXCLUDED_PREFIXES so pyproject.toml discovery
skips `.claude/worktrees/` directories
- Add `.claude` to _CLEANUP_SKIP_DIRS so IML cleanup ignores it
- Add `scripts` to STATIC_MODULES for the scripts distribution
---
dev/ide_setup/setup_idea.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dev/ide_setup/setup_idea.py b/dev/ide_setup/setup_idea.py
index 59682bef88f..a19cbfb2bb6 100755
--- a/dev/ide_setup/setup_idea.py
+++ b/dev/ide_setup/setup_idea.py
@@ -59,6 +59,7 @@ STATIC_MODULES: list[str] = [
"docker-tests",
"kubernetes-tests",
"helm-tests",
+ "scripts",
"task-sdk-integration-tests",
]
@@ -756,7 +757,7 @@ def register_sdk(name: str, venv_dir: Path, working_dir:
Path, *, idea_path: Pat
# Module discovery
# ---------------------------------------------------------------------------
-EXCLUDED_PREFIXES = ("out/", ".build/", "dist/", ".venv/", "generated/")
+EXCLUDED_PREFIXES = ("out/", ".build/", ".claude/", "dist/", ".venv/",
"generated/")
def discover_modules(*, exclude_modules: set[str] | None = None) -> list[str]:
@@ -804,7 +805,7 @@ def get_module_name(module_path: str) -> str:
# ---------------------------------------------------------------------------
# Directories that are never scanned for leftover .iml files.
-_CLEANUP_SKIP_DIRS = {".idea", "node_modules", ".venv", ".git", ".build",
"out", "dist"}
+_CLEANUP_SKIP_DIRS = {".idea", ".claude", "node_modules", ".venv", ".git",
".build", "out", "dist"}
def _find_previous_iml_files() -> list[Path]: