summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 00000000..3e3e7d34
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,30 @@
+repos:
+ - repo: local
+ hooks:
+ - id: shfmt
+ name: shfmt
+ minimum_pre_commit_version: 2.4.0
+ language: golang
+ additional_dependencies: [mvdan.cc/sh/v3/cmd/[email protected]]
+ entry: shfmt
+ args: [-i=2, -ci, -w]
+ types: [shell]
+ - id: shellcheck
+ name: shellcheck
+ language: system
+ types: [shell]
+ entry: bash
+ args:
+ [-c, "shfmt -f $(git rev-parse --show-toplevel) | xargs shellcheck"]
+ - id: stylua
+ name: StyLua
+ language: rust
+ entry: stylua
+ types: [lua]
+ args: [.]
+ - id: luacheck
+ name: luacheck
+ language: system
+ entry: luacheck
+ types: [lua]
+ args: [.]