mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: Add IDE, env, log, and cache patterns to ignore list
This commit is contained in:
parent
8d59a519a6
commit
d3daf9d159
1 changed files with 17 additions and 1 deletions
|
@ -70,7 +70,6 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]:
|
||||||
if not gitignore_paths:
|
if not gitignore_paths:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# are there any others we should consider ai?
|
|
||||||
patterns = [
|
patterns = [
|
||||||
".aider*",
|
".aider*",
|
||||||
".git",
|
".git",
|
||||||
|
@ -88,6 +87,23 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]:
|
||||||
"__pycache__/", # Python cache dir
|
"__pycache__/", # Python cache dir
|
||||||
".DS_Store", # macOS metadata
|
".DS_Store", # macOS metadata
|
||||||
"Thumbs.db", # Windows thumbnail cache
|
"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
|
] # Always ignore
|
||||||
for path in gitignore_paths:
|
for path in gitignore_paths:
|
||||||
if path.exists():
|
if path.exists():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue