Skip to content

Commit

Permalink
Add git hook to run cargo fmt and clippy before commit
Browse files Browse the repository at this point in the history
This commit adds a pre-commit hook that automatically runs `cargo fmt` and `clippy` to ensure code quality and consistency before each commit.

Signed-off-by: YouXam <[email protected]>
  • Loading branch information
YouXam committed May 12, 2024
1 parent f76106c commit a697166
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ codegen-units = 1

[profile.dev]
opt-level = "s"
debug = false # Symbols are nice and they don't increase the size on Flash
debug = false
lto = true
strip = true

Expand All @@ -40,3 +40,8 @@ twox-hash = "1.6.3"

[build-dependencies]
embuild = "0.31.3"

[dev-dependencies.cargo-husky]
version = "1"
default-features = false
features = ["precommit-hook"]

0 comments on commit a697166

Please sign in to comment.