-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
48 lines (43 loc) · 1.21 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
repos:
- repo: local
hooks:
- id: ruff-format
name: ruff format
entry: ruff format
args: [--force-exclude]
language: system
require_serial: true
types_or: [python, pyi]
minimum_pre_commit_version: "2.9.2"
- id: ruff-check
name: ruff lint
entry: ruff check
args: [--force-exclude, --fix]
language: system
require_serial: true
types_or: [python, pyi]
minimum_pre_commit_version: "2.9.2"
- id: mypy
name: mypy
entry: mypy
language: system
require_serial: true
types: [python]
- id: trailing-whitespace
name: trim trailing whitespace
entry: trailing-whitespace-fixer
language: system
types: [text]
stages: [pre-commit, pre-push, manual]
- id: end-of-file-fixer
name: fix end of files
entry: end-of-file-fixer
language: system
types: [text]
stages: [pre-commit, pre-push, manual]
- id: check-merge-conflict
name: check for merge conflicts
entry: check-merge-conflict
args: [--assume-in-merge]
language: system
types: [text]