lint:pre-commit shfmt hook

This commit is contained in:
Casper da Costa-Luis
2020-01-30 22:37:31 +00:00
parent 98d2ca00c0
commit f8c01e7fb3
+11
View File
@@ -9,3 +9,14 @@ repos:
hooks:
- id: flake8
language_version: python3
- repo: https://github.com/casperdcl/sh
rev: master
hooks:
- id: shfmt
language: golang
args:
- -l # list files whose formatting differs from shfmt's
- -d # error with a diff when the formatting differs
- -i # indentation
- '2' # 2 spaces
- -ci # switch cases will be indented