Skip to content

ci: run lint/fmt/typecheck through hk#22

Merged
sauyon merged 2 commits into
mainfrom
sauyon/tender-gates-ecf624
May 18, 2026
Merged

ci: run lint/fmt/typecheck through hk#22
sauyon merged 2 commits into
mainfrom
sauyon/tender-gates-ecf624

Conversation

@sauyon

@sauyon sauyon commented May 18, 2026

Copy link
Copy Markdown
Owner

Adds an hk.pkl wiring up the prettier, biome, and tsc builtins so the same checks run locally (pre-commit, fix, check hooks) and in CI.

Pins hk + pkl via mise.toml and collapses the separate fmt/lint/typecheck CI jobs into a single check job that invokes hk check --all.

Adds an hk.pkl wiring up the prettier, biome, and tsc builtins so the
same checks run locally (pre-commit, fix, check hooks) and in CI.

Pins hk + pkl via mise.toml and collapses the separate fmt/lint/typecheck
CI jobs into a single `check` job that invokes `hk check --all`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a git hook configuration using hk and pkl, defining linting steps for prettier, biome, and tsc across pre-commit, fix, and check hooks. It also updates mise.toml to include the required tool versions. A review comment suggests that using tsc as a per-file linter in the pre-commit hook may cause performance bottlenecks and type-checking inaccuracies, recommending a full project context instead.

Comment thread hk.pkl Outdated
tsc invokes the full project (tsc --noEmit -p tsconfig.json), so it's
correct but slow to run on every commit. Move it onto the `slow` hk
profile so pre-commit only runs prettier + biome, and pass `--slow` in
CI so the type check still runs there.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sauyon
sauyon merged commit d71e7b0 into main May 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant