-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
139 lines (124 loc) · 3.07 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
139 lines (124 loc) · 3.07 KB
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
132
133
134
135
136
137
138
139
default_language_version:
python: python3.14
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py314-plus]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.3.1
hooks:
- id: mypy
additional_dependencies: &rpipe_dependencies [
"zstandard[cffi]",
"pycryptodomex",
"cryptography",
"argcomplete",
"requests",
"tqdm",
"zstdlib>=0.3.2",
"waitress",
"flask",
"human_readable",
"psutil",
"types-cryptography",
"types-requests",
"types-waitress",
"types-psutil",
"types-flask",
"types-tqdm",
"types-psutil",
]
- repo: https://github.com/betterleaks/betterleaks
rev: v1.8.1
hooks:
- id: betterleaks
#
# Fail fast
#
- repo: https://github.com/abravalheri/validate-pyproject
rev: '0.26'
hooks:
- id: validate-pyproject
fail_fast: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
# Syntax
- id: check-toml
fail_fast: true
- id: check-json
fail_fast: true
- id: check-yaml
fail_fast: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
fail_fast: true
#
# Modifiers
#
- repo: https://github.com/dannysepler/rm_unneeded_f_str
rev: v0.2.0
hooks:
- id: rm-unneeded-f-str
# Last modifier: Coding Standard
- repo: https://github.com/psf/black
rev: 26.5.1
hooks:
- id: black
#
# Static Checks
#
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
# Python
- id: python-use-type-annotations
- id: python-no-log-warn
# Documentation
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/jendrikseipp/vulture
rev: v2.16
hooks:
- id: vulture
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.16.3
hooks:
- id: ruff
- repo: https://github.com/pycqa/pylint
rev: v4.0.7
hooks:
- id: pylint
additional_dependencies: *rpipe_dependencies
- repo: https://github.com/PyCQA/bandit
rev: 1.9.4
hooks:
- id: bandit
additional_dependencies: [".[toml]"]
args: ["-c", "pyproject.toml", "-r", "."]
- repo: https://github.com/immanuwell/dockerfile-roast
rev: 1.6.0
hooks:
- id: droast
args: ["--config", "pyproject.toml", "--fail-on", "info"]