The repo includes some handy git hooks under .scripts/:
pre-commitRuns theformat --check-formattedtask.post-commitRuns a customisedcredocheck.
We strongly recommend that you set up these git hooks on your machine by:
# sh
# in the project root, run:
ln -sf ../../.scripts/pre-commit .git/hooks/pre-commit
ln -sf ../../.scripts/post-commit .git/hooks/post-commit
# Yeah you read that right! Two folders up is necessary.
# See: https://stackoverflow.com/questions/4592838/symbolic-link-to-a-hook-in-git#4594681Note that our CI will fail your PR if you dont run
mix formatin the project root.
We follow lexmag/elixir-style-guide and rrrene/elixir-style-guide (both overlap a lot).
Our commit messages (at least on develop) are formatted as described
here.
Please set up our super nice commit message template to supercharge ⚡⚡ your commit messages!
# sh
# in the project root, run:
git config commit.template .git_commit_msg.txtTo make this your commit template globally, just add the --global flag!
Have fun commiting new changes! 🌈