diff options
| author | 2026-01-18 13:34:52 +0800 | |
|---|---|---|
| committer | 2026-01-18 13:34:52 +0800 | |
| commit | 02520ca62ac5e508e8748b2445171be64f459b6c (patch) | |
| tree | a15a95be5f2f93385df36d6336f53b3f08d07a44 /.pre-commit-config.yaml | |
| parent | 53df697ccf90cd13efc985c195dade48920cc0fa (diff) | |
| download | DropOut-02520ca62ac5e508e8748b2445171be64f459b6c.tar.gz DropOut-02520ca62ac5e508e8748b2445171be64f459b6c.zip | |
fix(ci): improve pre-commit fmt hook configuration
- Add pass_filenames: false to fmt hook
- Add -- separator for cargo fmt args
- Manually format code with cargo fmt
Diffstat (limited to '.pre-commit-config.yaml')
| -rw-r--r-- | .pre-commit-config.yaml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e37cac..7fd9d5e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,11 +29,12 @@ repos: rev: v1.2.1 hooks: - id: fmt - args: [ --manifest-path src-tauri/Cargo.toml ] + args: [ --manifest-path, src-tauri/Cargo.toml, -- ] files: ^src-tauri/.*\.rs$ + pass_filenames: false - id: cargo-check - args: [ --manifest-path src-tauri/Cargo.toml ] + args: [ --manifest-path, src-tauri/Cargo.toml ] files: ^src-tauri/.*\.rs$ - id: clippy - args: [ --manifest-path src-tauri/Cargo.toml ] + args: [ --manifest-path, src-tauri/Cargo.toml ] files: ^src-tauri/.*\.rs$ |