Skip to content

Add scalafmt pre-commit hook - #22

Merged
russwyte merged 1 commit into
mainfrom
chore/scalafmt-githooks
Jul 30, 2026
Merged

Add scalafmt pre-commit hook#22
russwyte merged 1 commit into
mainfrom
chore/scalafmt-githooks

Conversation

@russwyte

Copy link
Copy Markdown
Contributor

Summary

  • Add .githooks/pre-commit that runs sbt scalafmtCheckAll (same gate as CI)
  • Add ./scripts/install-git-hooks to set core.hooksPath=.githooks for this clone
  • Document the one-time install in the README where missing

Test plan

  • ./scripts/install-git-hooks
  • Intentionally break formatting and confirm commit is blocked
  • sbt scalafmtAll then commit succeeds

Matches the ascent/specular pattern: once per clone run
./scripts/install-git-hooks so commits run sbt scalafmtCheckAll.
@russwyte
russwyte merged commit dc7ecbc into main Jul 30, 2026
4 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