feat: check code quality through git hooks (#105)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Add `git hooks` that execute common and repetitive tasks before committing and pushing to make developer life easier. Reviewed-on: #105 Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
This commit is contained in:
20
lefthook.yml
Normal file
20
lefthook.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
pre-commit:
|
||||
parallel: true
|
||||
commands:
|
||||
compiling:
|
||||
glob: &elixir_files '*.{ex,exs}'
|
||||
run: make check_compile
|
||||
formating:
|
||||
glob: *elixir_files
|
||||
run: make check_format
|
||||
linting:
|
||||
glob: *elixir_files
|
||||
run: make credo
|
||||
typing:
|
||||
glob: *elixir_files
|
||||
run: make dialyzer
|
||||
pre-push:
|
||||
commands:
|
||||
testing:
|
||||
run: make compose_test
|
Reference in New Issue
Block a user