mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add changelog for migration to Ruff as formatter and linter
This commit is contained in:
parent
d0bc165963
commit
27561361fc
1 changed files with 24 additions and 0 deletions
24
CHANGES/1750.misc.rst
Normal file
24
CHANGES/1750.misc.rst
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
Migrated from Black and isort to Ruff for code formatting and linting, a modern, blazingly fast formatter and linter written in Rust.
|
||||
|
||||
Enabled additional ruff rule sets.
|
||||
|
||||
**For end users:**
|
||||
|
||||
No changes required. This is purely a development tooling change that doesn't affect the library API or behavior.
|
||||
|
||||
**For contributors:**
|
||||
|
||||
- Use ``make reformat`` or ``uv run ruff format`` to format code (replaces ``black`` and ``isort``)
|
||||
- Use ``make lint`` to check code quality (now includes formatting, linting, and type checking)
|
||||
- Pre-commit hooks automatically updated to use ``ruff`` and ``ruff-format``
|
||||
- CI/CD pipelines updated to use ruff in GitHub Actions workflows
|
||||
|
||||
**Benefits:**
|
||||
|
||||
- 10-100x faster formatting and linting compared to Black + isort + flake8
|
||||
- Single tool for formatting, import sorting, and linting
|
||||
- More comprehensive code quality checks out of the box
|
||||
- Auto-fixes for many common issues (33 issues auto-fixed during migration)
|
||||
- Better integration with modern Python development workflows
|
||||
|
||||
This change improves the developer experience and code quality while maintaining the same code style standards.
|
||||
Loading…
Add table
Add a link
Reference in a new issue