Skip to content

Commit

Permalink
Add a pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
justinas committed Nov 29, 2019
1 parent 9debd35 commit f87ff77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ release:
-C $(PWD)/target/release oon_scraper oon_web \
-C $(PWD)/oon_web static

.PHONY: release
setup-hooks:
ln -f -s $(PWD)/pre-commit .git/hooks/pre-commit

.PHONY: release setup-hooks
2 changes: 2 additions & 0 deletions pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
cargo check

0 comments on commit f87ff77

Please sign in to comment.