forked from php-curl-class/php-curl-class
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
44 lines (44 loc) · 1.07 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
42
43
44
# Pre-commit git hooks.
#
# Usage:
# 1. Run one of:
# $ pip install pre-commit
# $ brew install pre-commit
#
# 2. Install hooks
# $ pre-commit install
#
# 3. Optionally, enable automatic updates
# $ pre-commit autoupdate
repos:
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
name: black
entry: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort
args: ["--force-single-line-imports", "--profile", "black"]
- repo: local
hooks:
- id: composer-validate
name: composer-validate
language: script
entry: scripts/pre-commit.sh
files: 'composer\.json'
pass_filenames: true
- repo: https://github.com/jazzband/pip-tools
rev: 7.3.0
hooks:
- id: pip-compile
name: pip-compile make_release_requirements.in
files: ^(.*/)?make_release_requirements\.(in|txt)$
entry: bash -c 'cd scripts/ && pip-compile --output-file="make_release_requirements.txt" "make_release_requirements.in"'