-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1005 Bytes
/
.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
repos:
- repo: local
hooks:
- id: ruff
name: ruff
entry: poetry run ruff --fix
language: system
types: [python]
files: "^src/.+|^tests/.+|noxfile.py"
- id: black
name: black
entry: poetry run black
language: system
types: [python]
files: "^src/.+|^tests/.+|noxfile.py"
- id: darglint
name: darglint
entry: poetry run darglint -v 2
language: system
types: [python]
files: "^src/.+|^tests/.+|noxfile.py"
- id: mypy
name: mypy
entry: poetry run mypy
language: system
types: [python]
files: "^src/.+|^tests/.+|noxfile.py"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.0
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace