-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
70 lines (61 loc) · 1.43 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
69
70
# See https://pre-commit.com/ for usage and config
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: check-added-large-files
name: Check for added large files
stages: [commit]
entry: check-added-large-files
language: system
- id: isort
name: isort
stages: [commit]
language: system
entry: poetry run isort src
types: [python]
- id: black
name: black
stages: [commit]
language: system
entry: poetry run black src
types: [python]
- id: mypy
name: mypy
stages: [commit]
language: system
entry: poetry run mypy
types: [python]
require_serial: true
- id: darglint
name: darglint
stages: [commit]
language: system
entry: poetry run darglint src
types: [python]
require_serial: true
- id: ruff
name: ruff
stages: [commit]
language: system
entry: poetry run ruff src tests assets
types: [python]
args: [ --fix, --exit-non-zero-on-fix ]
- id: pydocstringformatter
name: pydocstringformatter
stages: [commit]
language: system
entry: poetry run pydocstringformatter src tests assets
types: [python]
# - id: pytest
# name: pytest
# stages: [commit]
# language: system
# entry: poetry run pytest tests
# types: [python]
# pass_filenames: false