repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-executables-have-shebangs # check for shebang
- id: check-shebang-scripts-are-executable # check for executable shebang
exclude_types: # Rust files sometimes have #! at the beginning.
- id: check-merge-conflict # check for merge conflict markers
- id: check-symlinks # check for broken symlinks
- id: check-toml # check toml syntax
- id: check-yaml # check yaml syntax
- id: destroyed-symlinks # detects symlinks which became the files they were pointing to
- id: detect-private-key # detects the presence of private keys.
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
- id: fix-byte-order-marker # removes utf-8 byte order marker.
- id: mixed-line-ending # replaces or checks mixed line ending.
- id: trailing-whitespace # trims trailing whitespace.