From d3daf9d15978bb0662feefb74b6f360b72a16453 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 11 Dec 2024 20:30:17 -0800 Subject: [PATCH] feat: Add IDE, env, log, and cache patterns to ignore list --- aider/watch.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/aider/watch.py b/aider/watch.py index a593ef72b..130d4463a 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -70,7 +70,6 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]: if not gitignore_paths: return None - # are there any others we should consider ai? patterns = [ ".aider*", ".git", @@ -88,6 +87,23 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]: "__pycache__/", # Python cache dir ".DS_Store", # macOS metadata "Thumbs.db", # Windows thumbnail cache + # IDE files + ".idea/", # JetBrains IDEs + ".vscode/", # VS Code + "*.sublime-*", # Sublime Text + ".project", # Eclipse + ".settings/", # Eclipse + "*.code-workspace", # VS Code workspace + # Environment files + ".env", # Environment variables + ".venv/", # Python virtual environments + "node_modules/", # Node.js dependencies + "vendor/", # Various dependencies + # Logs and caches + "*.log", # Log files + ".cache/", # Cache directories + ".pytest_cache/", # Python test cache + "coverage/", # Code coverage reports ] # Always ignore for path in gitignore_paths: if path.exists():