-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.pre-commit-config.yaml
33 lines (33 loc) · 1.06 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
# Excluding mkdocs.yml due to the use of custom tags
exclude: ^docs/mkdocs.yml$
- id: check-added-large-files
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
hooks:
- id: markdownlint
args: [--disable, line-length, --]
- repo: local
hooks:
- id: composer
name: Ensure Composer is valid
description: Runs Composer to validate configuration
language: script
entry: /bin/sh
args: [-c, "composer validate"]
files: composer.*
- id: pint
name: Check formatting (PHP)
description: Runs Laravel Pint to automatically fix formatting issues.
language: script
entry: /bin/sh
args: [-c, "([ -f ./vendor/bin/pint ] || composer install) && ./vendor/bin/pint -v"]
types: [php]