surrealpatch/.pre-commit-config.yaml

18 lines
420 B
YAML
Raw Permalink Normal View History

2023-06-10 20:23:51 +00:00
repos:
- repo: local
hooks:
- id: fmt
name: fmt
description: Format files with cargo fmt.
entry: cargo fmt
language: system
types: [rust]
args: ["--all", "--", "--check"]
- id: clippy
name: clippy
description: Lint rust sources
entry: cargo clippy
language: system
args: ["--", "-W", "warnings"]
types: [rust]
pass_filenames: false