-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
77 lines (77 loc) · 2.13 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
minimum_pre_commit_version: '3.2.0'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-xml
- id: check-yaml
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-case-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: detect-private-key
- id: mixed-line-ending
- id: pretty-format-json
- id: check-merge-conflict
args: [--assume-in-merge]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
files: '^dat/'
types: [lua]
args: ["--ignore-words", ".codespellignore" ]
additional_dependencies:
- tomli
- repo: local
hooks:
- id: nluacheck
name: wrapper for luacheck that understands Naev hooks
entry: utils/nluacheck.py
files: '^dat/'
types: [lua]
language: python
- id: check_fmt_f_usage
name: Lua f-string validation
entry: utils/check_fmt_f_usage.py
files: '^dat/'
types: [lua]
language: python
- id: glsl_validator
name: glsl validator
entry: utils/nglslValidator.py
files: dat/.*\.(frag|vert)$
language: python
- id: potfiles
name: check for stale POTFILES.in
entry: utils/update-po.sh . . --pre-commit
language: script
always_run: true
pass_filenames: false
- id: naevpedia
name: check for stale naevpedia ships/outfits
entry: utils/update-naevpedia.sh . --pre-commit
language: script
files: dat/(ships|outfits)/.*.xml$
pass_filenames: false
- id: optipng
name: PNG Optimizer
entry: optipng
types: [png]
language: system
- id: clang-format
name: Clang formatter
entry: clang-format -i
types: [c]
files: '^src/'
language: system