fix(pre-commit): keep --force-exclude on the generated typos hook #1152

Merged
coilysiren merged 1 commit from fix/typos-force-exclude into main 2026-08-20 08:06:58 +00:00
Member

The generated block passed args: [] to drop upstream's --write-changes, which also dropped --force-exclude. pre-commit hands typos explicit paths, so without that flag a consumer's _typos.toml [files] extend-exclude is inert and only word lists take effect.

eco-app hit this while excluding its vendored Eco recipe graph (data/eco_gnome_data.json), whose item names and localized strings are upstream's spelling. Word-listing them instead would globally whitelist ba, sie, ist, ein, bord, and friends across real source.

The generated hook keeps reporting rather than rewriting, since --write-changes stays dropped.

Refs coilyco-gaming/eco-app#316

The generated block passed `args: []` to drop upstream's `--write-changes`, which also dropped `--force-exclude`. pre-commit hands typos explicit paths, so without that flag a consumer's `_typos.toml` `[files] extend-exclude` is inert and only word lists take effect. eco-app hit this while excluding its vendored Eco recipe graph (`data/eco_gnome_data.json`), whose item names and localized strings are upstream's spelling. Word-listing them instead would globally whitelist `ba`, `sie`, `ist`, `ein`, `bord`, and friends across real source. The generated hook keeps reporting rather than rewriting, since `--write-changes` stays dropped. Refs coilyco-gaming/eco-app#316
fix(pre-commit): keep --force-exclude on the generated typos hook
All checks were successful
ci / aos-cli-tests (pull_request) Successful in 21s
ci / aos-eval-tests (pull_request) Successful in 6s
ci / ward-doctor (pull_request) Successful in 12s
ci / gate (pull_request) Successful in 56s
160bd8bffa
The generated block passed `args: []` to drop upstream's --write-changes,
which also dropped --force-exclude. pre-commit hands typos explicit paths,
so without that flag a consumer's `_typos.toml` `[files] extend-exclude` is
inert and only word lists take effect. eco-app hit this excluding its
vendored Eco recipe graph.

Refs coilyco-gaming/eco-app#316
coilysiren deleted branch fix/typos-force-exclude 2026-08-20 08:06:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
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.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/agentic-os!1152
No description provided.