Add a pre-commit hook configuration to check YAML and whitespace.

These are minor, but avoids those coming up during reviews at all.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.com>
This commit is contained in:
Diego Elio Pettenò 2020-05-15 16:35:17 +01:00
parent 2077d83a49
commit f70ac1ad67
4 changed files with 16 additions and 11 deletions

View file

@ -11,3 +11,9 @@ repos:
rev: latest rev: latest
hooks: hooks:
- id: reuse - id: reuse
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

View file

@ -127,4 +127,3 @@ function getCursorPosition(canvas, event) {
drawColorPicker(); drawColorPicker();
canvas.addEventListener('mousedown', onColorPick); canvas.addEventListener('mousedown', onColorPick);