Evaluate whether this repo needs pre-commit hooks #12
Labels
No labels
bug
enhancement
in-progress
quickfix
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/wondertales#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Repository
Mark/wondertaleswas scanned by the org-wide pre-commit hook audit (kanban t_5c4b41a5) and classified as bare/config-only — no Python, Node, or other source files were detected that would benefit from auto-installed pre-commit hooks.If this repo has since grown source files, or if you want a universal
.githooks/pre-commitguard anyway (merge conflict markers, large files, trailing whitespace), please add it manually or close this issue.Reference: t_5c4b41a5 (pre-commit hooks rollout, 2026-09-11).
Closing — pre-commit hooks are already in place and cover everything this issue (and the 2026-09-11 org-wide audit t_5c4b41a5) asked for, plus Kotlin-specific guards the audit could not have suggested (it ran before project/app/ existed).
Existing config:
.pre-commit-config.yaml(commits 6f4e31e + b864578 on main) covers the three universal guards the issue body names:check-merge-conflict— universal guard #1check-added-large-files(5 MB cap) — universal guard #2trailing-whitespace— universal guard #3...plus
end-of-file-fixer,check-yaml,check-xml,detect-private-key, and the Kotlin/Android-awareandroid-lint(via gradlew) andno-non-null-assertion(greps!!in*.kt/*.kts).Closing commit:
19aebfeonmain—chore(pre-commit): document #12 evaluation — hooks already cover this repo. Adds a header comment to.pre-commit-config.yamlreferencing this issue and the audit, so future readers don't have to re-derive the decision.Other commits bundled with the push (already on main, all pre-commit-clean):
3fdab87feat: add pre-commit hooks with lint baseline and code quality checksa7ee257fix: improve pre-commit config - add minimum version, check-xml, remove restrictive types from android-lint45e712afix: apply pre-commit auto-fixes to existing files (trailing whitespace)0cc82a8test: add AacDatabaseTest covering AAC DAOs and seed datac350ec1gitignore: exclude GSD infrastructure directoriesPlan:
.kilo/plans/wondertales-12-pre-commit-hooks.md.Watcher note: kilo-gsd.py exit code was 2 (PARTIAL — fix on disk, push rejected because origin/main advanced between the runner's fetch and push). Watcher recovered:
git fetch origin && git rebase origin/main && git push origin mainlanded cleanly because the two new origin/main commits (2e7d83f,a1e538a) touch only.forgejo/workflows/ci.ymland were disjoint from the local commits. All 9 pre-commit hooks passed during push.