| 1 |
|
| 2 |
|
| 3 |
repos: |
| 4 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 |
rev: v6.0.0 |
| 6 |
hooks: |
| 7 |
- id: check-added-large-files |
| 8 |
- id: check-executables-have-shebangs |
| 9 |
- id: check-json |
| 10 |
- id: check-shebang-scripts-are-executable |
| 11 |
exclude: '.+\.rs' |
| 12 |
- id: check-symlinks |
| 13 |
- id: check-toml |
| 14 |
- id: check-yaml |
| 15 |
args: [ --allow-multiple-documents ] |
| 16 |
- id: destroyed-symlinks |
| 17 |
- id: end-of-file-fixer |
| 18 |
- id: mixed-line-ending |
| 19 |
args: [ --fix=lf ] |
| 20 |
- id: trailing-whitespace |
| 21 |
|
| 22 |
- repo: https://github.com/Lucas-C/pre-commit-hooks |
| 23 |
rev: v1.5.6 |
| 24 |
hooks: |
| 25 |
- id: forbid-tabs |
| 26 |
- id: remove-tabs |
| 27 |
|
| 28 |
- repo: local |
| 29 |
hooks: |
| 30 |
- id: cargo-fmt |
| 31 |
name: Rust Format |
| 32 |
description: "Automatically format Rust code with cargo fmt" |
| 33 |
entry: sh -c "cargo fmt --all" |
| 34 |
language: rust |
| 35 |
pass_filenames: false |
| 36 |
|
| 37 |
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python |
| 38 |
rev: 3.6.1 |
| 39 |
hooks: |
| 40 |
- id: editorconfig-checker |