docker-php-pre-commit/.pre-commit-config.yaml

32 lines
830 B
YAML
Raw Normal View History

2024-02-29 17:44:55 +01:00
# 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:
- --config .codespellrc
#- --write-changes # Uncomment to write changes
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"]