aiogram/.serena/memories/suggested_commands.md
Alex Root Junior 9f49c0413f
Added full support for the Bot API 9.6 (#1792)
* Added full support for the Bot API 9.6

* Add support for `managed_bot` updates

* Set `description_parse_mode` default to `"parse_mode"` and use `DateTime` for `addition_date` in `PollOption`

* Update changelog with features and changes from Bot API 9.6

* Add changelog fragment generator and update poll parameter descriptions
2026-04-04 01:22:08 +03:00

1.5 KiB

Suggested Commands

Setup

uv sync --all-extras --group dev --group test
uv run pre-commit install

Lint & Format (quick loop — use before every commit)

uv run ruff check --show-fixes --preview aiogram examples
uv run ruff format --check --diff aiogram tests scripts examples
uv run mypy aiogram

Auto-fix formatting

uv run ruff format aiogram tests scripts examples
uv run ruff check --fix aiogram tests scripts examples

Run tests

uv run pytest tests                                                   # basic
uv run pytest tests --redis redis://localhost:6379/0                  # with Redis
uv run pytest tests --mongo mongodb://mongo:mongo@localhost:27017     # with MongoDB

Build docs

# Live-reload dev server
uv run --extra docs sphinx-autobuild --watch aiogram/ --watch CHANGES.rst --watch README.rst docs/ docs/_build/
# One-shot build
uv run --extra docs bash -c 'cd docs && make html'

Code generation (Bot API codegen)

# After editing .butcher/*.yml or templates:
uv run --extra cli butcher parse
uv run --extra cli butcher refresh
uv run --extra cli butcher apply all

API version bump (maintainers only)

make update-api args=patch   # runs butcher parse/refresh/apply + version bump

Changelog

# Preview draft
uv run --extra docs towncrier build --draft
# Build final
uv run --extra docs towncrier build --yes

Clean build artifacts

make clean

Build package

uv build