forked from mac-cleanup/mac-cleanup-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (47 loc) · 1.17 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
default_stages:
- push
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.2.2
hooks:
- id: commitizen
name: Check Convenient Commits
stages: [ commit-msg ]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
name: Run black
types: [ python ]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: Run isort
types: [ python ]
- repo: local
hooks:
- id: pytest
name: Run pytest
language: system
pass_filenames: false
types: [ python ]
entry: poetry run pytest
- id: pyright
name: Run pyright
language: system
pass_filenames: false
types: [ python ]
entry: poetry run pyright
- id: ruff
name: Run ruff
language: system
pass_filenames: false
types: [ python ]
entry: poetry run ruff check .
- id: docformatter
name: Run docformatter
language: system
pass_filenames: false
types: [ python ]
entry: poetry run docformatter -cr . --config ./pyproject.toml