Use language: system for Rust hooks (#3616)

This commit is contained in:
Jonathan Plasse 2023-03-21 03:44:21 +01:00 committed by GitHub
parent 22a4ab51f9
commit 92aa3a8178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -28,17 +28,17 @@ repos:
- id: cargo-fmt - id: cargo-fmt
name: cargo fmt name: cargo fmt
entry: cargo fmt -- entry: cargo fmt --
language: rust language: system
types: [rust] types: [rust]
- id: clippy - id: clippy
name: clippy name: clippy
entry: cargo clippy --workspace --all-targets --all-features -- -D warnings entry: cargo clippy --workspace --all-targets --all-features -- -D warnings
language: rust language: system
pass_filenames: false pass_filenames: false
- id: ruff - id: ruff
name: ruff name: ruff
entry: cargo run -p ruff_cli -- check --no-cache --force-exclude --fix --exit-non-zero-on-fix entry: cargo run -p ruff_cli -- check --no-cache --force-exclude --fix --exit-non-zero-on-fix
language: rust language: system
types_or: [python, pyi] types_or: [python, pyi]
require_serial: true require_serial: true
exclude: | exclude: |
@ -49,7 +49,7 @@ repos:
- id: dev-generate-all - id: dev-generate-all
name: dev-generate-all name: dev-generate-all
entry: cargo dev generate-all entry: cargo dev generate-all
language: rust language: system
pass_filenames: false pass_filenames: false
exclude: target exclude: target