mirror of
https://github.com/Dasharo/edk2.git
synced 2026-06-13 10:16:24 -07:00
pre-commit: add config
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com> Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
committed by
Sergii Dmytruk
parent
2d238f002f
commit
fd24869f06
@@ -0,0 +1,16 @@
|
||||
---
|
||||
policies:
|
||||
- type: commit
|
||||
spec:
|
||||
header:
|
||||
length: 80
|
||||
imperative: false
|
||||
invalidLastCharacters: .
|
||||
body:
|
||||
required: false
|
||||
dco: true
|
||||
gpg:
|
||||
required: true
|
||||
spellcheck:
|
||||
locale: US
|
||||
maximumOfOneCommit: false
|
||||
@@ -0,0 +1,40 @@
|
||||
---
|
||||
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
|
||||
files: ^DasharoModulePkg/
|
||||
- id: check-merge-conflict
|
||||
files: ^DasharoModulePkg/
|
||||
- id: check-symlinks
|
||||
files: ^DasharoModulePkg/
|
||||
- id: detect-private-key
|
||||
files: ^DasharoModulePkg/
|
||||
- id: end-of-file-fixer
|
||||
files: ^DasharoModulePkg/
|
||||
- id: trailing-whitespace
|
||||
files: ^DasharoModulePkg/
|
||||
- id: mixed-line-ending
|
||||
files: ^DasharoModulePkg/
|
||||
|
||||
- repo: https://github.com/talos-systems/conform
|
||||
rev: v0.1.0-alpha.27
|
||||
hooks:
|
||||
- id: conform
|
||||
stages:
|
||||
- commit-msg
|
||||
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.2.5
|
||||
hooks:
|
||||
- id: codespell
|
||||
files: ^DasharoModulePkg/
|
||||
Reference in New Issue
Block a user