From 1ef7d139862de4ee93216fc617f9ee6c4002df5f Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Fri, 16 Jan 2026 20:43:21 +0800 Subject: chore: update pre-commit configuration to specify language for clippy checks Modified the .pre-commit-config.yaml file to explicitly set the language for clippy checks to 'system', ensuring consistent behavior across different environments. This change enhances the clarity of the configuration. --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a5ed67..1cfe197 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,9 @@ repos: args: ["--check", "--manifest-path", "src-tauri/Cargo.toml", "--"] files: ^src-tauri/.*\.rs$ pass_filenames: false + language: system - id: clippy args: ["--manifest-path", "src-tauri/Cargo.toml", "--", "-D", "warnings"] files: ^src-tauri/.*\.rs$ pass_filenames: false + language: system -- cgit v1.2.3-70-g09d2 From bf934d63edda2129ffbe77a42486a9607b1c4eb0 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Fri, 16 Jan 2026 20:44:37 +0800 Subject: chore: update pre-commit configuration to include Rust as system language Modified the .pre-commit-config.yaml file to add 'rust' to the system_language setting, ensuring that pre-commit hooks are properly configured for Rust projects. This change enhances the versatility of the pre-commit setup. --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1cfe197..a9a0acb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,8 @@ ci: autofix_prs: true autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit hooks [skip ci]" - + system_language: ["rust"] + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 -- cgit v1.2.3-70-g09d2 From f6a88e61f789c58a9307dd7405faf00d92b5f84b Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Fri, 16 Jan 2026 20:51:36 +0800 Subject: chore: update pre-commit configuration for Rust hooks Modified the .pre-commit-config.yaml file to replace the Rust pre-commit repository and update the hooks for formatting and linting. This change enhances the configuration by using the latest version of the Rust pre-commit hooks and streamlining the setup for Rust projects. --- .pre-commit-config.yaml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a9a0acb..885534b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,10 @@ ci: autofix_prs: true autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit hooks [skip ci]" - system_language: ["rust"] - + repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-json exclude: ^ui/tsconfig.*\.json$ @@ -19,22 +18,15 @@ repos: - id: check-ast - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.14.13 hooks: - id: ruff args: [ --fix ] - id: ruff-format - - repo: https://github.com/doublify/pre-commit-rust - rev: v1.0 + - repo: https://github.com/FeryET/pre-commit-rust + rev: v1.2.1 hooks: - id: fmt - args: ["--check", "--manifest-path", "src-tauri/Cargo.toml", "--"] - files: ^src-tauri/.*\.rs$ - pass_filenames: false - language: system + - id: cargo-check - id: clippy - args: ["--manifest-path", "src-tauri/Cargo.toml", "--", "-D", "warnings"] - files: ^src-tauri/.*\.rs$ - pass_filenames: false - language: system -- cgit v1.2.3-70-g09d2 From bb6cf77844343bbf55be3dad201340572564d132 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Fri, 16 Jan 2026 20:53:01 +0800 Subject: chore: update pre-commit configuration to skip specific hooks Modified the .pre-commit-config.yaml file to add a skip option for formatting, cargo-check, and clippy hooks. This change optimizes the pre-commit setup by allowing selective execution of hooks, enhancing the efficiency of the development workflow. --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 885534b..89bdd7e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,8 @@ ci: autofix_prs: true autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit hooks [skip ci]" - + skip: [fmt,cargo-check,clippy] + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 -- cgit v1.2.3-70-g09d2