This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.pre-commit-config.yaml
62 lines (61 loc) · 1.93 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-symlinks
- repo: https://github.com/jazzband/pip-tools
rev: 6.2.0
hooks:
- id: pip-compile
name: pip-compile setup.cfg
files: ^(setup\.cfg|requirements\.txt)$
additional_dependencies: [cython, numpy>=1.17.3] #pyrle requires cython to read setup.py
- id: pip-compile
name: pip-compile dev
args: [--extra=dev, --output-file=requirements/dev.txt]
files: ^(setup\.cfg)$
additional_dependencies: [cython, numpy>=1.17.3] #pyrle requires cython to read setup.py
- id: pip-compile
name: pip-compile test
args: [--extra=testing, --output-file=requirements/testing.txt]
files: ^(setup\.cfg)$
additional_dependencies: [cython, numpy>=1.17.3] #pyrle requires cython to read setup.py
- id: pip-compile
name: pip-compile docs
args: [--extra=docs, --output-file=requirements/docs.txt]
files: ^(setup\.cfg)$
additional_dependencies: [cython, numpy>=1.17.3] #pyrle requires cython to read setup.py
- repo: https://github.com/psf/black
rev: 21.6b0
hooks:
- id: black
args: [--target-version=py37]
- repo: https://github.com/PyCQA/isort
rev: 5.9.1
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v2.20.0
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies:
- flake8-pytest-style
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.2
hooks:
- id: prettier
stages: [commit]
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.17.12
hooks:
- id: commitizen
stages:
- commit-msg