Add pre-commit hooks

This commit is contained in:
Francesco Antognazza 2023-04-06 11:09:24 +02:00
parent 1cfcc001e5
commit 3e63bed204
4 changed files with 16 additions and 3 deletions

14
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
args:
- --allow-multiple-documents
- --unsafe
- id: end-of-file-fixer

View File

@ -8,4 +8,3 @@
Variables prefixed by `vault_` are available by unlocking the vault with the master password
# Basic config