-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (37 loc) · 1021 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-added-large-files
- repo: local
hooks:
- id: "#1"
name: format
entry: pdm run format
language: system
always_run: true
pass_filenames: false
- id: "#2"
name: code standards, docstring, and imports check
entry: pdm run check
language: system
always_run: true
pass_filenames: false
- id: "#3"
name: dead code check
entry: pdm run check-dead
language: system
always_run: true
pass_filenames: false
- id: "#4"
name: type check
entry: pdm run check-typing
language: system
always_run: true
pass_filenames: false
- id: "#5"
name: test
entry: pdm run test
language: system
always_run: true
pass_filenames: false