Stop excluding tests/ from the ty-check pre-commit hook so touched test files are type-checked. Fix the new ingest tests under the now-active check: - cast duck-typed JobContext / App test doubles to their declared types; - narrow the gated Postgres fixture's str | None URL (pytest.skip isn't modelled as NoReturn by ty). Pre-existing type issues in untouched test modules are unaffected (the hook checks only changed files); they'll be cleaned as those files are next touched. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
26 lines
537 B
YAML
26 lines
537 B
YAML
repos:
|
|
- repo: https://github.com/commitizen-tools/commitizen
|
|
rev: v4.9.0
|
|
hooks:
|
|
- id: commitizen
|
|
- id: commitizen-branch
|
|
stages:
|
|
- pre-push
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff-check
|
|
name: ruff-check
|
|
entry: uv run ruff check
|
|
language: system
|
|
types: [python]
|
|
- id: ruff-format
|
|
name: ruff-format
|
|
entry: uv run ruff format
|
|
language: system
|
|
types: [python]
|
|
- id: ty-check
|
|
name: ty-check
|
|
language: system
|
|
types: [python]
|
|
entry: uv run ty check
|