-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
55 lines (55 loc) · 1.44 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
# .pre-commit-config.yaml
# See https://pre-commit.com/ for usage and config
repos:
- repo: local
hooks:
- id: check-added-large-files
name: Check for added large files
stages: [commit]
entry: check-added-large-files
language: system
- id: ruff_fmt
name: Ruff format
stages: [commit]
language: system
entry: ruff format
types: [python]
- id: ruff_check
name: Ruff check
stages: [commit]
language: system
entry: ruff check --fix
types: [python]
- id: xdoctest
name: xdoctest
stages: [commit]
language: system
entry: poetry run xdoctest
types: [python]
- id: mypy
name: mypy
stages: [commit]
language: system
entry: poetry run mypy
types: [python]
require_serial: true
- id: pydoclint
name: pydoclint
stages: [commit]
language: system
entry: poetry run pydoclint # src tests
types: [python]
require_serial: true
- id: pytest
name: pytest
stages: [commit]
language: system
entry: poetry run pytest tests
types: [python]
pass_filenames: false
- id: pydocstringformatter
name: pydocstringformatter
stages: [commit]
language: system
entry: rye run pydocstringformatter src tests
types: [python]