mirror of https://github.com/astral-sh/ruff
Use language: system for Rust hooks (#3616)
This commit is contained in:
parent
22a4ab51f9
commit
92aa3a8178
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue