-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
68 lines (60 loc) · 1.51 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
58
59
60
61
62
63
64
65
66
67
68
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-toml
- repo: local
hooks:
- id: ruff_format
name: ruff_format
stages: [commit]
language: system
entry: ruff format src tests docs
types: [python]
- id: ruff
name: ruff
stages: [commit]
language: system
entry: ruff --fix src tests docs
types: [python]
- id: xdoctest
name: xdoctest
stages: [commit]
language: system
entry: xdoctest
types: [python]
- id: pydocstringformatter
name: pydocstringformatter
stages: [commit]
language: system
entry: pydocstringformatter src tests docs
types: [python]
- id: mypy
name: mypy
stages: [commit]
language: system
entry: mypy
types: [python]
require_serial: true
- id: pydoclint
name: pydoclint
stages: [commit]
language: system
entry: pydoclint src tests docs
types: [python]
require_serial: true
- id: pytest
name: pytest
stages: [commit]
language: system
entry: pytest tests
types: [python]
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.0
hooks:
- id: prettier