default_install_hook_types: [pre-commit, commit-msg]
default_stages: [pre-commit]
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args:
- --strict
- feat
- fix
- docs
- style
- refactor
- perf
- test
- build
- ci
- chore
- revert
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)^(
tests/integration/parity_corpus/.*|
tests/integration/cpython_vendored/.*
)$
- id: end-of-file-fixer
exclude: |
(?x)^(
tests/integration/parity_corpus/.*|
tests/integration/cpython_vendored/.*
)$
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb=500]
- id: mixed-line-ending
args: [--fix=lf]
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --all -- --check
language: system
pass_filenames: false
types: [rust]