File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ #
3+ # An example hook script to verify what is about to be committed.
4+ # Called by "git commit" with no arguments. The hook should
5+ # exit with non-zero status after issuing an appropriate message if
6+ # it wants to stop the commit.
7+ #
8+ # To enable this hook, rename this file to "pre-commit".
9+
10+ cargo build
11+ cargo test
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ homepage = "https://github.com/clearloop/leetcode-cli"
1515keywords = [" cli" , " games" , " leetcode" ]
1616readme = ' ./README.md'
1717
18- # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
19-
2018[dependencies ]
2119clap = " 2.33.0"
2220colored = " 1.9.1"
@@ -41,5 +39,10 @@ features = ["sqlite"]
4139version = " 0.10.3"
4240features = [" blocking" , " gzip" , " json" ]
4341
42+ [dev-dependencies .cargo-husky ]
43+ version = " 1"
44+ default-features = false
45+ features = [" precommit-hook" , " user-hooks" ]
46+
4447[features ]
4548pym = [" pyo3" ]
You can’t perform that action at this time.
0 commit comments