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:
2026-02-02 21:43:08 +03:00
parent 52dce1b2b8
commit fc3f438cbf
8 changed files with 141 additions and 38 deletions

View File

@@ -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.