Skip to content

Commit

Permalink
Merge pull request #171 from uta8a/fix-precommit
Browse files Browse the repository at this point in the history
Fix scripts/pre-commit
  • Loading branch information
kmyk authored Aug 7, 2021
2 parents 8d1bbac + 11507a2 commit d2be385
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ git diff --exit-code *.cabal \
# C++
which clang-format \
|| { echo HINT: Please install clang-format; false; }
for f in $(find runtime/include examples/data -name \*.\?pp); do diff $f <(clang-format $f); done \
|| { echo HINT: Please run '$ clang-format -i $(find runtime/include examples/data -name \*.\?pp);' ; false; }
for f in $(find runtime/include examples/data -name \*.\?pp); do diff $f <(clang-format $f) || { echo HINT: Please run '$ clang-format -i $(find runtime/include examples/data -name \*.\?pp);' ; false; }; done

# Python
isort --version \
Expand Down

0 comments on commit d2be385

Please sign in to comment.