Skip to content

Conversation

@djaboxx
Copy link
Contributor

@djaboxx djaboxx commented May 21, 2025

This commit introduces configurable search exclusions.

Key changes:

  • Added excluded_dirs and excluded_file_patterns fields to the CodebaseContext model in gemini_stacktrace/models/config.py. These fields have sensible defaults for common project structures.
  • Modified the find_in_files and _search_files functions in gemini_stacktrace/tools/codebase_tools.py to respect these new configuration options, allowing you to customize which directories and file patterns are ignored during searches.
  • Updated unit tests in tests/test_codebase_tools.py to verify the functionality of default and custom exclusions.
  • Updated docs/codebase_search.md to document the new configuration options and how they can be used.

This change allows for more flexible and precise control over the scope of codebase searches.

This commit introduces configurable search exclusions.

Key changes:
- Added `excluded_dirs` and `excluded_file_patterns` fields to the
  `CodebaseContext` model in `gemini_stacktrace/models/config.py`.
  These fields have sensible defaults for common project structures.
- Modified the `find_in_files` and `_search_files` functions in
  `gemini_stacktrace/tools/codebase_tools.py` to respect these new
  configuration options, allowing you to customize which directories
  and file patterns are ignored during searches.
- Updated unit tests in `tests/test_codebase_tools.py` to verify
  the functionality of default and custom exclusions.
- Updated `docs/codebase_search.md` to document the new configuration
  options and how they can be used.

This change allows for more flexible and precise control over the scope
of codebase searches.
@djaboxx djaboxx merged commit 86e3678 into main May 21, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants