diff --git a/.gitignore b/.gitignore index d268a08..726d2d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ result .direnv -examples/**/flake.lock diff --git a/shell/pre-commit.sh b/shell/pre-commit.sh index 210590c..b57e426 100755 --- a/shell/pre-commit.sh +++ b/shell/pre-commit.sh @@ -11,6 +11,9 @@ diff="git diff-index --name-only --cached $against --diff-filter d" all_files=($($diff)) +# Remove example lock files. +rm-locks + # Format staged files. if ((${#all_files[@]} != 0)); then fmt "${all_files[@]}" &&