-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.pre-commit-config.yaml
67 lines (65 loc) · 1.87 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
63
64
65
66
67
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: end-of-file-fixer
stages: [commit]
- repo: local
hooks:
- id: conventional-commit
name: Conventional commit
description: Check if commits follow the conventional commit specification
language: system
entry: ./etc/scripts/check_commit_msg.sh
stages: [commit-msg]
- id: no-carriage-returns
require_serial: true
name: No Carriage Returns
description: Check that there are no \r characters in .py files
entry: ./etc/scripts/check_no_carriage_returns.sh
language: system
stages: [commit-msg]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
exclude: ^(legacy-backend|tests)/.*$
files: ^crispy-api/api/.*\.py$
stages: [commit]
additional_dependencies: ["types-requests"]
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
require_serial: true
name: Coding style (Black)
language_version: python3.10
stages: [commit]
exclude: ^legacy-backend.*$
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
require_serial: true
name: isort
args: ["--profile", "black"]
stages: [commit]
exclude: ^legacy-backend.*$
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
require_serial: true
name: Coding style (flake8)
stages: [commit]
exclude: ^legacy-backend.*$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
exclude: ^.github/
name: Prettier
stages: [commit]
additional_dependencies:
- prettier
- svelte