mirror of
https://github.com/Dasharo/coreboot.git
synced 2026-06-13 10:16:48 -07:00
25bbe8f4e4
Until dasharo-25.12 becomes the main dasharo branch, the upstream status hook will always fail to find common base with origin/dasharo branch. Avoid this by setting the base tag we started this branch from. Upstream-Status: Inappropriate [pre-commit configuration] Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
56 lines
1.5 KiB
YAML
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: v4.4.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.27
|
|
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.1.7
|
|
# Can be triggered manually with command:
|
|
# pre-commit run --hook-stage pre-push check-upstream-status
|
|
hooks:
|
|
- id: check-upstream-status
|
|
args: [--base, refs/tags/25.12]
|
|
stages: [pre-push]
|