pre-commit: no need for args
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
as per the website: When creating local hooks, there's no reason to put command arguments into args as there is nothing which can override them -- instead put your arguments directly in the hook entry. ref: https://pre-commit.com/#arguments-pattern-in-hooks also add some little niceness to 'make test'
This commit is contained in:
parent
b5601acfbd
commit
56e6aa6b15
|
@ -30,19 +30,16 @@ repos:
|
|||
hooks:
|
||||
- id: make-test
|
||||
name: make test
|
||||
entry: make
|
||||
args: ["test"]
|
||||
entry: nice -n 3 make test
|
||||
language: system
|
||||
pass_filenames: false
|
||||
- id: build-release
|
||||
name: make release
|
||||
entry: make
|
||||
args: ["release"]
|
||||
entry: make release
|
||||
language: system
|
||||
pass_filenames: false
|
||||
- id: make-san
|
||||
name: make san
|
||||
entry: make
|
||||
args: ["san"]
|
||||
entry: make san
|
||||
language: system
|
||||
pass_filenames: false
|
||||
|
|
Reference in New Issue