-
Notifications
You must be signed in to change notification settings - Fork 4
Development
Syed Asif edited this page Jun 14, 2026
·
5 revisions
This project uses uv for fast, reproducible dependency management.
# Install dependencies
uv sync
# Run the server
uv run web-search-mcpWe use pytest for all tests.
# Run all tests
uv run pytest
# Run with coverage
uv run pytest --cov=web_search_mcp
# Run a specific test file
uv run pytest tests/test_<module>.py- Python Version: 3.11+
-
Linting:
ruff -
Type Checking:
mypy
- Imports: Use absolute imports.
-
Naming:
snake_casefor functions,PascalCasefor classes. -
Type Hints: Use Python 3.11+ union syntax (
str | None). -
Errors: Use
web_search_mcp._utils.formatting.format_error()for consistent MCP responses. - Testing: Follow AAA pattern (Arrange, Act, Assert). Tests fully independent.
- Use Conventional Commits (
feat:,fix:,refactor:,test:,chore:). - Run
uv run ruff check . && uv run pytestbefore committing. - Use feature branches for new functionality.
Home | Architecture | Tools | Configuration