Various custom pre-commit hooks.
Add the code blocks below to your .pre-commit-config.yaml
file.
Adds support for running Laravel Pint and Artisan Tests as pre-commit hooks in a Laravel project. Includes support for projects using Laravel Sail.
- repo: https://github.com/LaurenceRawlings/pre-commit-hooks
rev: v1.0.0
hooks:
- id: laravel-pint
args: ["--test"] # disables automatic fixing
- repo: https://github.com/LaurenceRawlings/pre-commit-hooks
rev: v1.0.0
hooks:
- id: laravel-test
args: ["--parallel"] # enables parallel testing
Parallel testing requires
brianium/paratest