summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
blob: 38ce72dc03e15bb76f1034f357fdc52c0eff1883 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
repos:
  - repo: local
    hooks:
      - id: shfmt
        name: shfmt
        minimum_pre_commit_version: 2.4.0
        language: system
        types: [shell]
        entry: bash
        args: [-c, make lint-sh]
      - id: shellcheck
        name: shellcheck
        language: system
        types: [shell]
        entry: bash
        args: [-c, make style-sh]
      - id: stylua
        name: StyLua
        language: rust
        entry: stylua
        types: [lua]
        args: ["-"]
      - id: luacheck
        name: luacheck
        language: system
        entry: luacheck
        types: [lua]
        args: [.]