Skip to content

Commit

Permalink
feat: introduce husky-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Sep 30, 2024
1 parent 9eed38c commit fdb2db0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
1 change: 0 additions & 1 deletion .cargo-husky/hooks/pre-push

This file was deleted.

3 changes: 3 additions & 0 deletions .husky/hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

echo "hi, commit-msg"
2 changes: 2 additions & 0 deletions .cargo-husky/hooks/pre-commit → .husky/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#!/usr/bin/env bash

echo "hi, pre-commit"
3 changes: 3 additions & 0 deletions .husky/hooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

echo "hi, pre-push"
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
Expand All @@ -13,6 +13,6 @@ repos:
args:
- "--allow-multiple-documents"
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.13.0
rev: v3.29.1
hooks:
- id: commitizen
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@ license = "MIT OR Apache-2.0"
[dependencies]
clap = { version = "~4.4.12", features = ["cargo", "derive"] }

[dev-dependencies.cargo-husky]
version = "1"
default-features = false # Disable features which are enabled by default
features = ["precommit-hook", "prepush-hook"]
[dev-dependencies]
husky-rs = "^0.1.1"

0 comments on commit fdb2db0

Please sign in to comment.