-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
40 lines (36 loc) · 1.06 KB
/
.pre-commit-config.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v0.17.1
hooks:
- id: stylua
exclude: unused
- repo: local
hooks:
- id: abbr-checks
name: Check alt forms abbr invariants
entry: lua static/abbr-checks.lua
language: lua
files: 'Poké-data.lua|AltForms-data.lua|UselessForms-data.lua|BothForms-data.lua'
pass_filenames: false
- id: changed-snapshot-tests
name: Run snapshot tests on changed files
entry: bash test/pre-commit-snapshots.sh
language: lua
files: '^(|test/)'
types: [lua]
- id: all-snapshot-tests
name: Verify snapshot tests are passing
entry: bash test/regression-test.sh
language: lua
pass_filenames: false
always_run: true
stages: [pre-push]