-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
76 lines (73 loc) · 1.96 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
71
72
73
74
75
76
default_language_version:
python: python3.11
repos:
- repo: local
hooks:
# General file checkers
- id: check-added-large-files
name: Check added large files
entry: check-added-large-files
language: system
- id: check-merge-conflict
name: Check for merge conflict strings
entry: check-merge-conflict
language: system
- id: check-case-conflict
name: Check for problematic file names
entry: check-case-conflict
language: system
# General text checkers
- id: end-of-file-fixer
name: Fix End of Files
entry: end-of-file-fixer
language: system
types: [text]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
language: system
types: [text]
- id: mixed-line-ending
name: Mixed Line Ending
entry: mixed-line-ending
language: system
types: [text]
# Serialization format checkers
- id: check-yaml
name: Check Yaml
entry: check-yaml
language: system
types: [yaml]
- id: check-json
name: Check JSON
entry: check-json
language: system
types: [json]
- id: check-toml
name: Check Toml
entry: check-toml
language: system
types: [toml]
# Python tools
- id: check-ast
name: Check Python syntax
entry: check-ast
language: system
types: [python]
- id: darglint
name: darglint
entry: darglint
language: system
types: [python]
- id: ruff
name: ruff
entry: ruff check --fix --exit-non-zero-on-fix
language: system
types_or: [python, jupyter]
require_serial: true
- id: black
name: black
entry: black
language: system
types_or: [python, jupyter]
require_serial: true