-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
53 lines (48 loc) · 1.28 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
fail_fast: true
default_language_version:
python: python3.10
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
- repo: https://github.com/codespell-project/codespell
rev: "v2.3.0"
hooks:
- id: codespell
additional_dependencies:
- tomli
args: ["--write-changes", "--interactive", "3"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.5
hooks:
- id: ruff
args: [--fix]
files: ^src/.*\.py$
- id: ruff-format
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.10.0.1"
hooks:
- id: shellcheck
- repo: https://github.com/gitleaks/gitleaks
rev: v8.19.1
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
files: /.*\.(py|yaml|json)$
- id: end-of-file-fixer
files: /.*\.(py|yaml|json)$
- id: check-yaml
exclude: ^templates/deployment_templates.yaml
files: /.*\.yaml$
args: [--allow-multiple-documents]
- id: check-json
files: /.*\.json$
- id: pretty-format-json
args: [--autofix]
files: /.*\.json$
- id: check-toml
files: /.*\.toml$