-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: switch to lefthook for git hooks
- Loading branch information
Showing
2 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.