mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-04-14 07:23:59 +02:00
Autoformat elixir in pre-commit hook
This commit is contained in:
parent
4b65e30c95
commit
567114c713
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
# You can install this hook and some of its dependencies by running `scripts/init.sh`.
|
||||
|
||||
set -euxo pipefail
|
||||
# ```
|
||||
|
||||
function command_exists() {
|
||||
bin_name=$(basename "$1")
|
||||
|
||||
|
@ -44,7 +44,7 @@ if command_exists cargo; then
|
|||
fi
|
||||
|
||||
if command_exists mix; then
|
||||
echo "$files" | xargs mix format --check-formatted
|
||||
echo "$files" | xargs mix format
|
||||
fi
|
||||
|
||||
# Add the modified/prettified files to staging
|
||||
|
|
Loading…
Add table
Reference in a new issue