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:
Maciej Pijanowski
2023-09-20 10:44:34 +02:00
committed by Sergii Dmytruk
parent 2d238f002f
commit fd24869f06
2 changed files with 56 additions and 0 deletions
+16
View File
@@ -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
+40
View File
@@ -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/