From e8bb8dffa1b1af05b7be184c820f5c72a2b8c1da Mon Sep 17 00:00:00 2001 From: David Campbell Date: Thu, 19 Sep 2024 12:15:04 -0400 Subject: [PATCH] Change the git pre-commit actions to work on stable. These are not being fixed, so it does not make sense to constantly take on new lints. The fmts may never be stabilized. Currently, you can not even commit, because it errors out. At least switch to lints that make it to stable when they are released. --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f90466bed..830ff87cf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,14 +4,14 @@ repos: - id: rust-linting name: Rust linting description: Run cargo fmt on files included in the commit. - entry: cargo +nightly fmt -- + entry: cargo fmt -- pass_filenames: true types: [file, rust] language: system - id: rust-clippy name: Rust clippy description: Run cargo clippy on files included in the commit. - entry: cargo +nightly clippy --workspace --all-targets --all-features -- + entry: cargo clippy --workspace --all-targets --all-features -- pass_filenames: false types: [file, rust] language: system