- Use
uvto run commands:uv run pytest ... - Use
uvto run commands:uv run mypy ... - Use
uvto run commands:uv run ruff ... - Use
uvto run commands:uv run python ...
- Type annotations are required on all new and modified functions.
- Do not add comments to the code. The code should be self-explanatory. If it is not, refactor it.
- Line length limit is 120 characters.
- Use
rufffor formatting and linting:uv run ruff checkanduv run ruff format. - Target Python 3.10+. Use modern syntax (
X | Yunions,list[...],dict[...], etc.).
- Do not summarize changes after editing files. The diff is visible directly.
- Tests use
pytestwithpytest-asyncioin auto mode. - Run specific tests with:
uv run pytest tests/<file>.py -k "<pattern>" -x