31 lines
830 B
YAML
31 lines
830 B
YAML
# Pre-commit hooks to run tests and ensure code is cleaned.
|
|
# See https://pre-commit.com for more information
|
|
---
|
|
repos:
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.2.2
|
|
hooks:
|
|
- id: codespell
|
|
args:
|
|
#- --write-changes # Uncomment to write changes
|
|
- --config .codespellrc
|
|
exclude_types: [csv, json]
|
|
|
|
- repo: https://github.com/digitalpulp/pre-commit-php.git
|
|
rev: 1.4.0
|
|
hooks:
|
|
- id: php-stan
|
|
files: \.(php)$
|
|
args: ["--configuration=phpstan.neon"]
|
|
|
|
- repo: https://github.com/adrienverge/yamllint
|
|
rev: v1.32.0
|
|
hooks:
|
|
- id: yamllint
|
|
args: ["-c", ".yamllint.yml"]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v2.7.1
|
|
hooks:
|
|
- id: prettier
|
|
args: ["--print-width", "100"]
|