Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0925121

Browse files
add: cargo-husky
1 parent d96f7d2 commit 0925121

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

‎.cargo-husky/hooks/pre-commit

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

‎Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ homepage = "https://github.com/clearloop/leetcode-cli"
1515
keywords = ["cli", "games", "leetcode"]
1616
readme = './README.md'
1717

18-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
19-
2018
[dependencies]
2119
clap = "2.33.0"
2220
colored = "1.9.1"
@@ -41,5 +39,10 @@ features = ["sqlite"]
4139
version = "0.10.3"
4240
features = ["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]
4548
pym = ["pyo3"]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /