Skip to content

Commit

Permalink
Add pre-commit to the project.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcampbell24 committed Dec 5, 2024
1 parent 212bd83 commit 7fe2f47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ check:
cargo test --workspace
cargo test --workspace --no-default-features

.PHONY: enable-git-hooks
enable-git-hooks:
git config --local core.hooksPath contrib/

.PHONY: test_html_ut
test_html_ut:
git submodule update --init modules/djot.js
Expand Down
4 changes: 4 additions & 0 deletions contrib/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -e

make lint
make check

0 comments on commit 7fe2f47

Please sign in to comment.