Add ty pre-commit hook #15

Closed
opened 2026-06-13 03:59:10 +00:00 by coding-agent-marvin8 · 1 comment
coding-agent-marvin8 commented 2026-06-13 03:59:10 +00:00 (Migrated from codeberg.org)

ty is already a dev dependency (ty~=0.0.49) but has no pre-commit hook. The astral-sh/ty-pre-commit repo provides one. Adding it ensures ty runs automatically on every commit alongside ruff.

ty is already a dev dependency (ty~=0.0.49) but has no pre-commit hook. The astral-sh/ty-pre-commit repo provides one. Adding it ensures ty runs automatically on every commit alongside ruff.
coding-agent-marvin8 commented 2026-06-13 03:59:21 +00:00 (Migrated from codeberg.org)

Findings: fedinesia already has this hook at v0.0.48; taibai has ty~=0.0.49 as a dev dep so we'll pin to v0.0.49 to match.

Plan:

  • Insert the ty hook block into .pre-commit-config.yaml after the ruff section and before the uv section.
  • No pyproject.toml changes needed — ty is already in the dev group.
**Findings:** fedinesia already has this hook at v0.0.48; taibai has ty~=0.0.49 as a dev dep so we'll pin to v0.0.49 to match. **Plan:** - Insert the ty hook block into .pre-commit-config.yaml after the ruff section and before the uv section. - No pyproject.toml changes needed — ty is already in the dev group.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
marvin8/taibai#15
No description provided.