-
Notifications
You must be signed in to change notification settings - Fork 61
Add code search tool with RAG capabilities #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
39b17ae
Add code search tool with RAG capabilities
openhands-agent 4ff41e8
Fix linting and type checking issues
openhands-agent e558c61
Delete .pre-commit-config.yaml
neubig 2033105
Address review comments:
openhands-agent 67a4bfd
Install code-search and pytorch-cpu groups in CI
openhands-agent f5be718
Update poetry.lock for optional dependency groups
openhands-agent fc29a54
Delete scripts/test_code_search.py
neubig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix linting and type checking issues
- Loading branch information
commit 4ff41e8a64222efd02c46518417ce55c7aa39880
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.5.0 | ||
| hooks: | ||
| - id: trailing-whitespace | ||
| exclude: docs/modules/python | ||
| - id: end-of-file-fixer | ||
| exclude: docs/modules/python | ||
| - id: check-yaml | ||
| - id: debug-statements | ||
|
|
||
| - repo: https://github.com/tox-dev/pyproject-fmt | ||
| rev: 1.7.0 | ||
| hooks: | ||
| - id: pyproject-fmt | ||
| - repo: https://github.com/abravalheri/validate-pyproject | ||
| rev: v0.16 | ||
| hooks: | ||
| - id: validate-pyproject | ||
|
|
||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| # Ruff version. | ||
| rev: v0.4.1 | ||
| hooks: | ||
| # Run the linter. | ||
| - id: ruff | ||
| entry: ruff check --config dev_config/python/ruff.toml | ||
| types_or: [python, pyi, jupyter] | ||
| args: [--fix] | ||
| # Run the formatter. | ||
| - id: ruff-format | ||
| entry: ruff format --config dev_config/python/ruff.toml | ||
| types_or: [python, pyi, jupyter] | ||
|
|
||
| - repo: https://github.com/pre-commit/mirrors-mypy | ||
| rev: v1.9.0 | ||
| hooks: | ||
| - id: mypy | ||
| additional_dependencies: | ||
| [types-requests, types-setuptools, types-pyyaml, types-toml] | ||
| entry: mypy --config-file dev_config/python/mypy.ini openhands_aci/ | ||
| always_run: true | ||
| pass_filenames: false |
Binary file not shown.
neubig marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| from .core import CodeSearchIndex | ||
| from .tools import initialize_code_search, search_code | ||
|
|
||
| __all__ = ['CodeSearchIndex', 'initialize_code_search', 'search_code'] | ||
| __all__ = ['CodeSearchIndex', 'initialize_code_search', 'search_code'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.