-
-
Notifications
You must be signed in to change notification settings - Fork 313
Expand file tree
/
Copy pathlefthook.yml
More file actions
49 lines (49 loc) · 1.14 KB
/
lefthook.yml
File metadata and controls
49 lines (49 loc) · 1.14 KB
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
skip_output:
- meta
pre-push:
files: "rg --files"
parallel: true
commands:
rubocop:
glob: "*.rb"
run: bundle exec rubocop {files}
selene:
glob: "{lua,plugin}/**/*.lua"
run: selene --config selene/config.toml {files}
stylua:
glob: "*.lua"
run: stylua --check {files}
typos:
run: typos {files}
lua-types:
glob: "*.lua"
run: llscheck lua/ || echo {files}
lua-test:
glob: "tests/specs/**/*_spec.lua"
run: nvim --headless -S "./tests/init.lua" || echo {files}
env:
- CI: 1
- GIT_CONFIG_GLOBAL: /dev/null
- GIT_CONFIG_SYSTEM: /dev/null
- NVIM_APPNAME: neogit-test
rspec:
only:
- ref: master
run: bin/specs {files}
pre-commit:
parallel: true
commands:
rubocop:
glob: "*.rb"
run: bundle exec rubocop {staged_files}
selene:
glob: "{lua,plugin}/**/*.lua"
run: selene --config selene/config.toml {staged_files}
stylua:
glob: "*.lua"
run: stylua --check {staged_files}
typos:
run: typos {staged_files}
lua-types:
glob: "*.lua"
run: llscheck lua/