Instructions for AI coding agents working on this repository.
This is a Python project under the vllm-project GitHub organization. It uses
uv for dependency management and virtual environment
handling.
Install all dependencies (including dev dependencies):
uv syncRun the full test suite with:
uv run pytestLinting and formatting are enforced via pre-commit using ruff.
ruff check . # lint
ruff check --fix . # lint with auto-fix
ruff format . # formatTo run all pre-commit hooks manually:
pre-commit run --all-files- Maximum line length: 120 characters.
- Target Python version: 3.12+.
- Type hints are encouraged on all public functions and methods.
- Style is enforced automatically by ruff; do not override or disable rules without discussion.
- Always sign off commits with the
-sflag (git commit -s). - Use conventional commit prefixes:
feat:-- new featurefix:-- bug fixci:-- CI/CD changeschore:-- maintenance tasks (deps, config)docs:-- documentation only
- Target the
mainbranch. - Include two sections in the PR description:
- Summary -- what the PR does and why.
- Test Plan -- how the changes were verified.
- Ensure all pre-commit hooks pass before opening the PR.