From 05940b0e9e1d1c33ebdb4cfc0d42cf4bb79b11dc Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sun, 28 May 2023 00:52:11 +0200 Subject: [PATCH] Add rusty-hook for pre-push cargo fmt --- .rusty-hook.toml | 5 +++++ Cargo.toml | 1 + 2 files changed, 6 insertions(+) create mode 100644 .rusty-hook.toml diff --git a/.rusty-hook.toml b/.rusty-hook.toml new file mode 100644 index 0000000..b1bd0ab --- /dev/null +++ b/.rusty-hook.toml @@ -0,0 +1,5 @@ +[hooks] +pre-push = "cargo fmt --all -- --check --color always" + +[logging] +verbose = true diff --git a/Cargo.toml b/Cargo.toml index d6c67ec..8e33c0d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,3 +40,4 @@ jsonwebtoken = "8.3.0" [dev-dependencies] lazy_static = "1.4.0" +rusty-hook = "0.11.2" \ No newline at end of file