Thanks for your interest in contributing!
git clone https://github.com/VecGrep/VecGrep
cd VecGrep
uv sync --extra devRun once after cloning to enable the pre-commit lint check:
git config core.hooksPath .githooksThis runs ruff against staged Python files before every commit and blocks the commit if any violations are found.
Run the server locally:
uv run vecgrepTest against a codebase:
uv run python -c "
from vecgrep.server import _do_index, search_code
print(_do_index('/path/to/project'))
print(search_code('your query here', '/path/to/project'))
"- Fork the repository
- Create a feature branch (
git checkout -b feat/my-feature) - Make your changes
- Open a pull request against
main
- Keep PRs focused — one feature or fix per PR
- Add tests for new functionality where practical
- Follow existing code style (ruff for formatting/linting)
- All
unsafeusage (if any) must have a comment explaining why
Open a GitHub issue with steps to reproduce and your Python/OS version.