Исправление: добавил pre-commit хуки (ruff + ruff-format)

This commit is contained in:
deadzilla 2026-07-08 00:17:01 +05:00
parent a9a2d40e5c
commit a5ea2086cd
2 changed files with 9 additions and 0 deletions

7
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

View File

@ -1,2 +1,4 @@
pre-commit>=3.5.0
pytest>=7.4.0
pytest-asyncio>=0.21.0
ruff>=0.8.0