feat: enable pre-commit checks
This commit is contained in:
parent
c2afb2c5d1
commit
a13a15cbd9
12 changed files with 110 additions and 26 deletions
27
.pre-commit-config.yaml
Normal file
27
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- id: detect-private-key
|
||||
- id: mixed-line-ending
|
||||
|
||||
- repo: https://github.com/commitizen-tools/commitizen
|
||||
rev: v3.27.0
|
||||
hooks:
|
||||
- id: commitizen
|
||||
stages: [commit-msg]
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: home-manager-check
|
||||
name: Home Manager Config Check
|
||||
entry: home-manager switch --dry-run
|
||||
language: system
|
||||
pass_filenames: false
|
||||
exclude: ^docs/
|
Loading…
Add table
Add a link
Reference in a new issue