Instruction file imported from MinadukiSekina/LangChain-SemanticSearch (
.cursor/rules/coding_style.mdc). Copyright stays with the author.
Development Guidelines
This document contains critical information about working with this codebase. Follow these guidelines precisely.
Rules
-
Package Management
- ONLY use uv, NEVER pip
- Installation:
uv add package - Upgrading:
uv add --dev package --upgrade-package package - FORBIDDEN:
uv pip install,@latestsyntax
-
Code Quality
- Type hints required for all code
- Follow existing patterns exactly
- Use Google style for docstring
-
Testing Requirements
- Framework:
uv run --frozen pytest - Coverage: test edge cases and errors
- New features require tests
- Bug fixes require regression tests
- Framework:
-
Git
- Follow the Conventional Commits style on commit messages.
Code Formatting and Linting
- Ruff
- Format:
uv run --frozen ruff format . - Check:
uv run --frozen ruff check . - Fix:
uv run --frozen ruff check . --fix
- Format:
- Pre-commit
- Config:
.pre-commit-config.yaml - Runs: on git commit
- Tools: Ruff (Python)
- Config: