Skip to content

chore: add .pre-commit-config.yaml and fix trailing whitespace#3430

Open
vincentclee wants to merge 1 commit into
github:mainfrom
vincentclee:chore/add-pre-commit-config
Open

chore: add .pre-commit-config.yaml and fix trailing whitespace#3430
vincentclee wants to merge 1 commit into
github:mainfrom
vincentclee:chore/add-pre-commit-config

Conversation

@vincentclee

Copy link
Copy Markdown

Adds a .pre-commit-config.yaml with trailing-whitespace, end-of-file-fixer, check-yaml, and check-executables-have-shebangs hooks (excluding .lock.yml files generated by gh-aw).

Fixes 41 files with trailing whitespace or missing end-of-file newlines, including shipped templates (tasks.md, plan.md, specify.md, etc.) that cause managed-files-modified warnings in user projects when their own pre-commit hooks clean up these issues after specify init.

Changes

  • New: .pre-commit-config.yaml — prevents future trailing whitespace/newline regressions
  • Fixed: 41 files with trailing whitespace or missing EOF newlines (templates, scripts, tests, config files)

Why

Users with pre-commit hooks (trailing-whitespace, end-of-file-fixer) get specify integration status warnings about modified managed files because the shipped templates contain trailing whitespace that pre-commit correctly strips, causing checksum mismatches.

@vincentclee vincentclee requested a review from mnriem as a code owner July 9, 2026 17:45
@vincentclee vincentclee changed the title chore: add .pre-commit-config.yaml and fix trailing whitespace chore: add .pre-commit-config.yaml and fix trailing whitespace Jul 9, 2026
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