From d9906164db7eb30cf66e2ed32edb220c0787fe13 Mon Sep 17 00:00:00 2001 From: azzamsa Date: Tue, 18 Jul 2023 10:49:21 +0700 Subject: [PATCH] fix: git-hooks should run only in CI It slows down the development. --- .cargo-husky/hooks/pre-commit | 4 ---- .cargo-husky/hooks/pre-push | 5 ----- Cargo.lock | 7 ------- Cargo.toml | 3 --- 4 files changed, 19 deletions(-) delete mode 100755 .cargo-husky/hooks/pre-commit delete mode 100755 .cargo-husky/hooks/pre-push diff --git a/.cargo-husky/hooks/pre-commit b/.cargo-husky/hooks/pre-commit deleted file mode 100755 index a14184e..0000000 --- a/.cargo-husky/hooks/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -just fmt -just lint -just _unit-test -just _update-sqlx-schema diff --git a/.cargo-husky/hooks/pre-push b/.cargo-husky/hooks/pre-push deleted file mode 100755 index f394a9f..0000000 --- a/.cargo-husky/hooks/pre-push +++ /dev/null @@ -1,5 +0,0 @@ -just _check-sqlx-schema -just fmt-check -just lint -just _unit-test -just _doc-check diff --git a/Cargo.lock b/Cargo.lock index a2d08bb..0ed77d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -329,12 +329,6 @@ dependencies = [ "serde", ] -[[package]] -name = "cargo-husky" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b02b629252fe8ef6460461409564e2c21d0c8e77e0944f3d189ff06c4e932ad" - [[package]] name = "cc" version = "1.0.79" @@ -2083,7 +2077,6 @@ dependencies = [ "async-graphql-axum", "axum", "base64 0.21.2", - "cargo-husky", "chrono", "cynic", "dotenv", diff --git a/Cargo.toml b/Cargo.toml index f1f2d53..7dc1412 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,9 +45,6 @@ url = "2.4.0" uuid = "1.3.3" [dev-dependencies] -# git hooks -cargo-husky = { version = "1", features = ["user-hooks"] } - anyhow = "1.0.71" cynic = "3.0.2" mime = "0.3.17"