linux-firmware/.pre-commit-config.yaml
Mario Limonciello c442a5002c Add pre-commit hooks and codespell template
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
2023-08-29 17:02:23 -05:00

27 lines
642 B
YAML

default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-executables-have-shebangs
- id: forbid-new-submodules
- id: check-yaml
- id: check-symlinks
- id: destroyed-symlinks
- repo: https://github.com/ambv/black
rev: 22.6.0
hooks:
- id: black
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.33.0
hooks:
- id: markdownlint
args: ['--fix']
- repo: local
hooks:
- id: check-whence
name: Check whence
files: 'WHENCE'
language: script
entry: ./check_whence.py