Skip to content

Commit

Permalink
Update: run lefthook in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey committed Oct 19, 2024
1 parent aaf50b3 commit fab2507
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ pre-push:
only:
- ref: master
files: "rg --files"
follow: true
parallel: true
commands:
1-rubocop:
rubocop:
glob: "*.rb"
run: bundle exec rubocop {files}
2-selene:
selene:
glob: "{lua,plugin}/**/*.lua"
run: selene --config selene/config.toml {files}
3-stylua:
stylua:
glob: "*.lua"
run: stylua --check {files}
4-typos:
typos:
run: typos {files}
5-lua-test:
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
6-rspec:
rspec:
run: bin/specs {files}

0 comments on commit fab2507

Please sign in to comment.