Skip to content

Commit

Permalink
chore: switch to lefthook for git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamez committed Nov 28, 2024
1 parent 81b16df commit 917adf4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 24 additions & 0 deletions .lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pre-commit:
parallel: true
commands:
mix_format:
glob: "**/*.{ex,exs}"
run: mix format {staged_files}
mix_credo:
glob: "**/*.{ex,exs}"
run: mix credo
trailing_whitespaces_and_merge_conflicts:
run: git diff --check --cached

pre-push:
parallel: true
commands:
mix_check_deps:
glob: "**/*.{ex,exs}"
run: mix deps.unlock --check-unused
mix_dialyzer:
glob: "**/*.{ex,exs}"
run: mix dialyzer
mix_test:
glob: "**/*.{ex,exs}"
run: mix test
24 changes: 0 additions & 24 deletions .pre-commit-config.yaml

This file was deleted.

0 comments on commit 917adf4

Please sign in to comment.