Skip to content

fix: use mix quality in husky pre-commit hook#21

Merged
bashar-qassis merged 1 commit intomainfrom
chore/husky-precommit-fix
Apr 4, 2026
Merged

fix: use mix quality in husky pre-commit hook#21
bashar-qassis merged 1 commit intomainfrom
chore/husky-precommit-fix

Conversation

@bashar-qassis
Copy link
Copy Markdown
Owner

Summary

  • Fixed husky pre-commit hook not firing.husky/_/ (generated wrappers) was missing because npm install had never been run to trigger husky's prepare script
  • Replaced individual commands (mix compile --warnings-as-errors && mix format --check-formatted && mix credo --strict) with mix quality, which also adds sobelow and dialyzer checks
  • Added npm install to mix setup so hooks are automatically bootstrapped on fresh clones

Test plan

  • Verified mix quality passes as pre-commit hook
  • Run mix setup on a fresh clone to confirm hooks are bootstrapped

🤖 Generated with Claude Code

…setup

The pre-commit hook wasn't firing because .husky/_/ (generated wrappers)
was missing — npm install had never run to trigger husky's prepare script.

- Replace individual compile/format/credo commands with mix quality
- Add npm install to mix setup so hooks are bootstrapped automatically
@bashar-qassis bashar-qassis merged commit ea98dd4 into main Apr 4, 2026
4 checks passed
@bashar-qassis bashar-qassis deleted the chore/husky-precommit-fix branch April 4, 2026 00:07
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