Pre-commit hook - runs prove tests for Perl6 project
$ sparrow plg install perl6-prove
You should set up .pre-commit-config.yaml at project root directory.
$ cat .pre-commit-config.yaml
- repo: local
hooks:
- id: perl6-prove
name: perl6-prove
entry: bash -c "sparrow plg run perl6-prove --param path=$PWD"
language: system
always_run: true
files: ''
Follow pre-commit docs for details.
Should be file path to a directory where your Perl6 project located.
Usually this is the same directory where .pre-commit-config.yaml is located.
And simple --param path=$PWD
should work for you.