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:
parent
2077d83a49
commit
f70ac1ad67
4 changed files with 16 additions and 11 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -127,4 +127,3 @@ function getCursorPosition(canvas, event) {
|
||||||
|
|
||||||
drawColorPicker();
|
drawColorPicker();
|
||||||
canvas.addEventListener('mousedown', onColorPick);
|
canvas.addEventListener('mousedown', onColorPick);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue