chore: add pre-commit config

This commit is contained in:
cătălin 2024-02-12 17:31:17 +01:00
commit 83345289be
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
28 changed files with 40 additions and 28 deletions

17
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
- id: pretty-format-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args:
- --allow-multiple-documents
- id: detect-private-key
- id: trailing-whitespace