forked from adfinis/mySAGW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.23 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
repos:
- repo: local
hooks:
- id: api-isort
stages: [commit]
name: api-isort
language: system
entry: /bin/sh -c 'cd ./api/ && isort .'
types: [python]
- id: api-black
stages: [commit]
name: api-black
language: system
entry: /bin/sh -c 'cd ./api/ && black'
types: [python]
- id: api-flake8
stages: [commit]
name: api-flake8
language: system
entry: /bin/sh -c 'cd ./api/ && flake8'
types: [python]
- id: caluma-isort
stages: [ commit ]
name: caluma-isort
language: system
entry: /bin/sh -c 'cd ./caluma/ && isort'
types: [ python ]
- id: caluma-black
stages: [ commit ]
name: caluma-black
language: system
entry: /bin/sh -c 'cd ./caluma/ && black'
types: [ python ]
- id: caluma-flake8
stages: [ commit ]
name: caluma-flake8
language: system
entry: /bin/sh -c 'cd ./caluma/ && flake8'
types: [ python ]
- id: gitlint
stages: [commit-msg]
name: gitlint
description: Validate commit lint
entry: gitlint --msg-filename
language: system