Skip to content

Commit

Permalink
chore: add rusty-hook for pre-commit and pre-push checks
Browse files Browse the repository at this point in the history
Added rusty-hook to ensure the library is working correctly and is properly
formatted before committing and pushing changes.
  • Loading branch information
AndrielFR committed Jan 5, 2025
1 parent efbfea3 commit 298eafa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .rusty-hook.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[hooks]
pre-commit = "cargo test"
pre-push = "cargo check && cargo fmt -- --check && cargo clippy -- -D warnings"
post-commit = "echo yay"

[logging]
verbose = true
1 change: 1 addition & 0 deletions lib/ferogram/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ pyo3-async-runtimes = { version = "^0.23", features = ["tokio-runtime"], optiona

[dev-dependencies]
tokio = { version = "^1.42", features = ["macros"] }
rusty-hook = "^0.11"

0 comments on commit 298eafa

Please sign in to comment.