repos:
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt args: [--mapping, '2', --sequence, '2', --offset, '0', --width, '92', --implicit_start, --preserve-quotes]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-byte-order-marker - id: check-case-conflict - id: check-yaml args: ["--unsafe"]
- id: end-of-file-fixer - id: trailing-whitespace exclude: ".yaml"
- id: mixed-line-ending - id: debug-statements - repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
args: ["--examples", "--all-features"]
- id: clippy
args: ["--examples", "--all-features", "--", "-D", "warnings"]
- repo: local
hooks:
- id: doc
name: Documentation
description: Build rust docs
entry: cargo doc --no-deps
language: system
types: [rust]
pass_filenames: false
- id: test
name: Test
description: Test code
entry: cargo test --all-features
language: system
types: [rust]
pass_filenames: false
- repo: https://github.com/detailyang/pre-commit-shell
rev: 1.0.5
hooks:
- id: shell-lint