generated from olivmath/template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.pre-commit-config.yaml
40 lines (37 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
34
35
36
37
38
39
40
repos:
- repo: local
hooks:
- id: pytest
name: Unit Tests (Pytest)
entry: pytest -m "not benchmark and not merkletreejs"
language: system
pass_filenames: false
always_run: true
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: Format Checker (Black)
language_version: python3.10
args: ["--diff"]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: ["add", "fix", "update", "remove", "security"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
hooks:
- id: prettier
name: Format Markdown files (Prettier)
files: '\.md$'
- id: prettier
name: Format JSON files (Prettier)
files: '\.json$'
- id: prettier
name: Format YAML files (Prettier)
files: '\.ya?ml$'
- id: prettier
name: Format TOML files (Prettier)
files: '\.toml$'