#4088·rtk

Prek support

Author: newtobCreated Sep 16, 2026Updated Sep 16, 2026
Labelsenhancementhelp wantedpriority:lowarea:cli

RTK is awesome!!

Prek is the rust git hook framework, a faster version of the classic pre-commit.

It presents a challenge as it is designed to harness many tools underneath it.

At it's most basic an example output from prek run is:

trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...............................................................Passed
check json...............................................................Passed
check for added large files..............................................Passed
check for merge conflicts................................................Passed
ruff check...............................................................Passed
ruff format..............................................................Passed
mypy.....................................................................Passed
Secret scan..............................................................Passed
Biome format & lint......................................................Passed
TypeScript typecheck.....................................................Passed

The words on the left are customisable, but the ... and Passed or Failed is standard. The dots could be removed to save 14% tokens.

A further piece of work could look at typical commit hooks and their outputs.