mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
* Migrate from Black to Ruff and reformat code with enabling additional linter checks * Add changelog for migration to Ruff as formatter and linter * Add type ignores for specific attributes and replace tuple with set for chat type check * Remove file from another changes
22 lines
596 B
YAML
22 lines
596 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: "trailing-whitespace"
|
|
- id: "check-case-conflict"
|
|
- id: "check-merge-conflict"
|
|
- id: "debug-statements"
|
|
- id: "end-of-file-fixer"
|
|
- id: "mixed-line-ending"
|
|
- id: "detect-private-key"
|
|
- id: "check-yaml"
|
|
- id: "check-toml"
|
|
- id: "check-json"
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: 'v0.14.0'
|
|
hooks:
|
|
- id: ruff
|
|
files: &files '^(aiogram|tests|examples)'
|
|
- id: ruff-format
|
|
files: *files
|