-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.pre-commit-config.yaml
40 lines (35 loc) · 1.1 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
exclude: ^totalRP3/(Libs/(Ellyb/Libraries|TaintLess)/.*|Locales/.{4}\.lua)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: check-yaml
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.1
hooks:
- id: editorconfig-checker
alias: ec
exclude: ^totalRP3/Locales/.*\.lua$
types: []
types_or: [lua, shell, xml]
- repo: local
hooks:
- id: luacheck
name: check lua
entry: luacheck -q
language: system
types: [lua]
require_serial: true
- id: xmllint
name: check xml
entry: xmllint --noout --quiet --schema .github/scripts/ui.xsd
language: system
types: [xml]
exclude: ^(.github/scripts/ui\.xsd|totalRP3/Bindings\.xml)$
require_serial: true