-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
42 lines (42 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
41
42
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3.10
stages: [ commit ]
args: [ '-v', '-S', '--line-length', '80' ]
- repo: https://github.com/Botpy/pre-commit-pylint
rev: v0.0.3
hooks:
- id: pylint-py3k
- id: pylint-score-limit
args:
- --limit=9.5
- --rcfile=./.pylintrc
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v8.0.0
hooks:
- id: commitlint
stages: [ commit-msg ]
additional_dependencies: [ '@commitlint/config-angular' ]
- repo: local
hooks:
- id: pytest-check
name: pytest-check
stages: [commit]
types: [python]
entry: pytest test
language: system
pass_filenames: false
always_run: true
- repo: local
hooks:
- id: mypy
name: mypy-check
stages: [commit]
types: [python]
entry: mypy .
language: system
pass_filenames: false
always_run: true