-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
84 lines (84 loc) · 2.16 KB
/
.pre-commit-config.yaml
File metadata and controls
84 lines (84 loc) · 2.16 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
ci:
skip:
- terraform_fmt
- terraform_tflint
- terraform_validate
- terraform_checkov
- sync-version
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-added-large-files
- id: check-merge-conflict
- id: detect-private-key
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.105.0
hooks:
- id: terraform_fmt
files: ^infrastructure/
- id: terraform_tflint
args:
- --init
- --config=__GIT_WORKING_DIR__/infrastructure/tests/.tflint.hcl
files: ^infrastructure/
- id: terraform_validate
files: ^infrastructure/
- id: terraform_checkov
args:
- --args=--config-file __GIT_WORKING_DIR__/infrastructure/tests/.checkov.yaml
files: ^infrastructure/
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.1
hooks:
- id: markdownlint-cli2
- repo: https://github.com/ninoseki/uv-sort
rev: v0.7.0
hooks:
- id: uv-sort
files: pyproject.toml
- repo: https://github.com/astral-sh/uv-pre-commit
rev: "0.11.7"
hooks:
- id: uv-lock
files: ^python_jobs/pyproject\.toml$
args: [--project, python_jobs]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.11
hooks:
- id: ruff-check
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.20.2
hooks:
- id: mypy
exclude: \**/_config_variables/.*_variables/__init__\.py$
files: ^python_jobs/src/
additional_dependencies:
- pandas-stubs
- types-pytz
- types-requests
language_version: python3.14
- repo: local
hooks:
- id: sync-version
name: Sync VERSION to package files
entry: .github/scripts/sync-version.sh
language: unsupported
files: ^VERSION$
pass_filenames: false
- id: version-status-info
name: Version status info
entry: .github/scripts/check-version-sync.sh
language: unsupported
verbose: true
stages: [pre-push]