mirror of
https://github.com/astral-sh/uv.git
synced 2026-05-06 08:56:53 -04:00
Use optimized rustfmt step in .pre-commit-config.yaml (#18355)
Matches the setup we use in Ruff.
This commit is contained in:
@@ -18,12 +18,11 @@ repos:
|
|||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: cargo-fmt
|
- id: rustfmt
|
||||||
name: cargo fmt
|
name: rustfmt
|
||||||
entry: cargo fmt --
|
entry: rustfmt
|
||||||
language: system
|
language: system
|
||||||
types: [rust]
|
types: [rust]
|
||||||
pass_filenames: false # This makes it a lot faster
|
|
||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
Reference in New Issue
Block a user