/
.pre-commit-config.yaml
57 lines (57 loc) · 1.54 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
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]
- 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]
- 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