Spaces:
Sleeping
Sleeping
Vatsal Gupta commited on
Add shfmt pre-commit hook (#259)
Browse files- .pre-commit-config.yaml +8 -0
.pre-commit-config.yaml
CHANGED
|
@@ -45,6 +45,14 @@ repos:
|
|
| 45 |
rev: "v2.3.0"
|
| 46 |
hooks:
|
| 47 |
- id: mypy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
# ShellCheck hook for linting shell scripts
|
| 49 |
- repo: https://github.com/shellcheck-py/shellcheck-py
|
| 50 |
rev: "v0.11.0.1"
|
|
|
|
| 45 |
rev: "v2.3.0"
|
| 46 |
hooks:
|
| 47 |
- id: mypy
|
| 48 |
+
# shfmt hook for formatting shell scripts
|
| 49 |
+
- repo: https://github.com/scop/pre-commit-shfmt
|
| 50 |
+
rev: v3.13.1-1
|
| 51 |
+
hooks:
|
| 52 |
+
- id: shfmt
|
| 53 |
+
name: shfmt
|
| 54 |
+
description: This hook runs shfmt for formatting shell scripts
|
| 55 |
+
args: ['-i', '4']
|
| 56 |
# ShellCheck hook for linting shell scripts
|
| 57 |
- repo: https://github.com/shellcheck-py/shellcheck-py
|
| 58 |
rev: "v0.11.0.1"
|