A pre-commit hook for Laravel.
This adds support for running Laravel Pint and Artisan Tests as pre-commit hooks in your Laravel project.
Add this to your .pre-commit-config.yaml:
- repo: https://github.com/matchory/pre-commit-laravel
rev: v1.0.1
hooks:
- id: laravel-pintOr, to disable automatic fixing:
- repo: https://github.com/matchory/pre-commit-laravel
rev: v1.0.1
hooks:
- id: laravel-pint
args: ["--test"]Add this to your .pre-commit-config.yaml:
- repo: https://github.com/matchory/pre-commit-laravel
rev: v1.0.1
hooks:
- id: laravel-testsOr, to enable parallel testing:
- repo: https://github.com/matchory/pre-commit-laravel
rev: v1.0.1
hooks:
- id: laravel-tests
args: ["--parallel"]Note that this requires the brianium/paratest package to be
installed in your project.
MIT