15 lines · 327 bytes
1repos:
2- repo: https://github.com/pre-commit/pre-commit-hooks
3 rev: v2.2.3
4 hooks:
5 - id: check-yaml
6 - id: end-of-file-fixer
7 - id: trailing-whitespace
8
9- repo: local
10 hooks:
11 - id: fmt
12 name: fmt
13 language: system
14 types: [file, rust]
15 entry: cargo fmt -- --check