Files
coreboot/.pre-commit-config.yaml
Maciej Pijanowski 32bb84b15e pre-commit: autoupdate hooks
Change-Id: Ia9233d626c13b4066488f8f2d15bf061733e1a93
Upstream-Status: Inappropriate [Dasharo downstream]
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2025-08-19 15:21:14 +02:00

56 lines
1.5 KiB
YAML

---
default_stages: [pre-commit]
default_install_hook_types: [pre-commit, commit-msg]
ci:
autoupdate_commit_msg: 'pre-commit: autoupdate hooks'
autofix_prs: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
# Consider re-enabling (a lot of coreboot code is affected, but with
# vendorcode excluded is much less)
# - id: end-of-file-fixer
# exclude: "src/vendorcode"
# - id: trailing-whitespace
# exclude: "src/vendorcode"
- id: mixed-line-ending
- repo: https://github.com/talos-systems/conform
rev: v0.1.0-alpha.30
hooks:
- id: conform
stages:
- commit-msg
# Consider re-enabling (a lot of coreboot code is affected, but with
# vendorcode excluded it is much less)
# - repo: https://github.com/codespell-project/codespell
# rev: v2.2.5
# hooks:
# - id: codespell
- repo: local
hooks:
- id: coreboot_lint
name: Runs coreboot lint-stable linter checks
entry: util/lint/lint lint-stable
language: script
types: [file]
- repo: https://github.com/3mdeb/hooks
rev: v0.2.2
# Can be triggered manually with command:
# pre-commit run --hook-stage pre-push check-upstream-status
hooks:
- id: check-upstream-status
args: [--base, origin/dasharo]
stages: [pre-push]