-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
.pre-commit-config.yaml
131 lines (131 loc) · 3.54 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
repos:
- repo: local
hooks:
- id: bandit
name: bandit
entry: bandit
language: system
types: [python]
require_serial: true
args: ["-c", "bandit.yml"]
- id: black
name: black
entry: black
language: system
types: [python]
require_serial: true
- id: ruff
name: ruff
entry: ruff
language: system
types: [python]
args: ["check"]
require_serial: true
- id: check-added-large-files
name: Check for added large files
entry: check-added-large-files
language: system
- id: check-toml
name: Check Toml
entry: check-toml
language: system
types: [toml]
- id: check-json
name: check-json
entry: check-json
language: python
types: [json]
- id: check-yaml
name: Check Yaml
entry: check-yaml
language: system
types: [yaml]
- id: check-ast
name: check-ast
entry: check-ast
language: python
types: [python]
stages: [pre-commit]
- id: check-builtin-literals
name: check-builtin-literals
entry: check-builtin-literals
language: python
types: [python]
stages: [pre-commit]
- id: check-case-conflict
name: check-case-conflict
entry: check-case-conflict
language: python
types: [python]
stages: [pre-commit]
- id: check-merge-conflict
name: check-merge-conflict
entry: check-merge-conflict
language: python
types: [text]
stages: [pre-commit]
- id: fix-byte-order-marker
name: fix-byte-order-marker
entry: fix-byte-order-marker
language: python
types: [python]
stages: [pre-commit]
- id: mixed-line-ending
name: mixed-line-ending
entry: mixed-line-ending
language: python
types_or: [c, c++, python]
stages: [pre-commit]
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
language: python
types_or: [python]
stages: [pre-commit]
- id: darglint
name: darglint
entry: darglint
language: system
types: [python]
stages: [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: flake8
name: flake8
entry: flake8
language: system
types: [python]
require_serial: true
args: [--max-line-length=132]
- id: isort
name: isort
entry: isort
require_serial: true
language: system
types_or: [cython, pyi, python]
args: ["--filter-files"]
- id: pyupgrade
name: pyupgrade
description: Automatically upgrade syntax for newer versions.
entry: pyupgrade
language: system
types: [python]
args: [--py38-plus]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
language: system
types: [text]
stages: [pre-commit, pre-push, manual]
#- repo: https://github.com/pre-commit/mirrors-prettier
#rev: v4.0.0-alpha.8
# hooks:
#- id: prettier
#- repo: https://github.com/necaris/pre-commit-pyright
#rev: '1.1.53'
#hooks:
#- id: pyright