Add pre-commit and yamllint configuration

patch-1
Fabian Affolter 2020-05-24 23:20:42 +02:00
parent a6b993ccbd
commit afdbacd835
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F
2 changed files with 15 additions and 0 deletions

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

@ -0,0 +1,10 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.17.0
hooks:
- id: yamllint

5
.yamllint Normal file
View File

@ -0,0 +1,5 @@
---
extends: default
rules:
document-start: disable