chore: add ruff and ty, fix linting
- Add ruff (line-length 88) and ty to dev dependencies - Fix all ruff linting errors - Configure ty to ignore nullable type warnings - Update AGENTS.md with linting instructions
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
В проекте используется uv. С помощью uv add добавляем зависимости.
|
||||
С помощью uv run запускаем.
|
||||
|
||||
### Линтер и типы
|
||||
|
||||
- **ruff** — линтер и форматтер, line-length 88
|
||||
- **ty** — проверка типов
|
||||
- Перед коммитом: `uv run ruff check --fix . && uv run ruff format . && uv run ty check .`
|
||||
|
||||
### Type hints
|
||||
Используй современный синтаксис type hints:
|
||||
- `list[]`, `dict[]`, `tuple[]`, `set[]` вместо List, Dict, etc.
|
||||
|
||||
Reference in New Issue
Block a user