-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.26 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
34
35
36
37
38
39
40
41
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
minimum_pre_commit_version: 3.2.0
default_install_hook_types: [pre-commit, commit-msg, prepare-commit-msg]
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
- id: check-added-large-files
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: pretty-format-json
args: ['--indent=4', '--no-sort-keys']
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
- repo: local
hooks:
- id: php-lint
name: php-lint
entry: php
args:
- -l
language: system
files: '\.(php)$'
- repo: https://github.com/two-inc/git-hooks
rev: 24.11.29
hooks:
- id: commit-msg
stages: [commit-msg]
- id: prepare-commit-msg
stages: [prepare-commit-msg]