|
1 | 1 | exclude: '^$' |
2 | 2 | fail_fast: false |
3 | 3 | repos: |
4 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
5 | | - rev: v4.5.0 |
6 | | - hooks: |
7 | | - - id: check-added-large-files |
8 | | - args: ['--maxkb=1024'] |
9 | | - - id: check-case-conflict |
10 | | - - id: check-merge-conflict |
11 | | - - id: check-symlinks |
12 | | - - id: fix-byte-order-marker |
13 | | - - id: trailing-whitespace |
14 | | - args: ['--markdown-linebreak-ext=md'] |
15 | | - - id: mixed-line-ending |
16 | | - args: ["--fix=lf"] |
17 | | - - id: end-of-file-fixer |
18 | | - - id: check-shebang-scripts-are-executable |
19 | | - - id: detect-private-key |
20 | | - - id: check-json |
21 | | - - id: pretty-format-json |
22 | | - args: ['--autofix', '--indent', '2', '--no-sort-keys'] |
23 | | - exclude: ^Pipfile |
24 | | - - id: check-yaml |
25 | | - exclude: ^charts/ |
26 | | - - id: check-toml |
| 4 | +- repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update |
| 5 | + rev: v0.7.0 |
| 6 | + hooks: |
| 7 | + - id: pre-commit-update |
| 8 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 9 | + rev: v5.0.0 |
| 10 | + hooks: |
| 11 | + - id: check-added-large-files |
| 12 | + args: ['--maxkb=1024'] |
| 13 | + - id: check-case-conflict |
| 14 | + - id: check-merge-conflict |
| 15 | + - id: check-symlinks |
| 16 | + - id: fix-byte-order-marker |
| 17 | + - id: trailing-whitespace |
| 18 | + args: ['--markdown-linebreak-ext=md'] |
| 19 | + - id: mixed-line-ending |
| 20 | + args: ["--fix=lf"] |
| 21 | + - id: end-of-file-fixer |
| 22 | + - id: check-executables-have-shebangs |
| 23 | + - id: check-shebang-scripts-are-executable |
| 24 | + - id: detect-private-key |
| 25 | + - id: detect-aws-credentials |
| 26 | + args: ['--allow-missing-credentials'] |
| 27 | + - id: check-json |
| 28 | + - id: pretty-format-json |
| 29 | + args: ['--autofix', '--indent', '2', '--no-sort-keys'] |
| 30 | + exclude: ^Pipfile |
| 31 | + - id: check-yaml |
| 32 | + exclude: ^charts/ |
| 33 | + - id: check-toml |
27 | 34 |
|
28 | 35 | # commit messages |
29 | | -- repo: https://github.com/commitizen-tools/commitizen |
30 | | - rev: v3.10.0 |
31 | | - hooks: |
32 | | - - id: commitizen |
33 | | - stages: [commit-msg] |
| 36 | +- repo: https://github.com/commitizen-tools/commitizen |
| 37 | + rev: v4.7.1 |
| 38 | + hooks: |
| 39 | + - id: commitizen |
| 40 | + stages: [commit-msg] |
34 | 41 |
|
35 | 42 | # Terraform |
36 | | -- repo: https://github.com/antonbabenko/pre-commit-terraform |
37 | | - rev: v1.89.1 |
38 | | - hooks: |
39 | | - - id: terraform_fmt |
40 | | - - id: terraform_validate |
| 43 | +- repo: https://github.com/antonbabenko/pre-commit-terraform |
| 44 | + rev: v1.99.0 |
| 45 | + hooks: |
| 46 | + - id: terraform_fmt |
| 47 | + - id: terraform_validate |
41 | 48 | # - id: terraform_docs_replace |
42 | | - - id: terraform_tflint |
43 | | - args: ['--args=--disable-rule=terraform_unused_declarations'] |
44 | | - - id: terraform_tfsec |
| 49 | + - id: terraform_tflint |
| 50 | + args: ['--args=--disable-rule=terraform_unused_declarations'] |
| 51 | + - id: terraform_tfsec |
45 | 52 |
|
46 | 53 | # Python tools |
47 | | -- repo: https://github.com/astral-sh/ruff-pre-commit |
| 54 | +- repo: https://github.com/astral-sh/ruff-pre-commit |
48 | 55 | # Ruff version. |
49 | | - rev: v0.9.6 |
50 | | - hooks: |
| 56 | + rev: v0.11.10 |
| 57 | + hooks: |
51 | 58 | # Run the linter. |
52 | | - - id: ruff |
53 | | - args: [--fix, --exit-non-zero-on-fix, --show-fixes] |
| 59 | + - id: ruff |
| 60 | + args: [--fix, --exit-non-zero-on-fix, --show-fixes] |
54 | 61 | # Run the formatter. |
55 | | - - id: ruff-format |
| 62 | + - id: ruff-format |
56 | 63 |
|
57 | 64 | # Shell script tools |
58 | | -- repo: https://github.com/pecigonzalo/pre-commit-shfmt |
59 | | - rev: v2.1.0 |
60 | | - hooks: |
61 | | - - id: shell-fmt-go |
62 | | - args: |
63 | | - - -i |
64 | | - - "2" |
| 65 | +- repo: https://github.com/pecigonzalo/pre-commit-shfmt |
| 66 | + rev: v2.2.0 |
| 67 | + hooks: |
| 68 | + - id: shell-fmt-go |
| 69 | + args: |
| 70 | + - -i |
| 71 | + - "2" |
65 | 72 |
|
66 | 73 | - repo: https://github.com/shellcheck-py/shellcheck-py |
67 | 74 | rev: v0.10.0.1 |
68 | 75 | hooks: |
69 | 76 | - id: shellcheck |
70 | | - |
71 | | -# LEGACY python |
72 | | -# - repo: https://github.com/PyCQA/isort |
73 | | -# rev: 5.13.2 |
74 | | -# hooks: |
75 | | -# - id: isort |
76 | | -# additional_dependencies: ["toml"] |
77 | | - |
78 | | -# - repo: https://github.com/psf/black |
79 | | -# rev: 23.12.1 |
80 | | -# hooks: |
81 | | -# - id: black |
82 | | -# additional_dependencies: ["toml"] |
83 | | - |
84 | | -# - repo: https://github.com/PyCQA/flake8 |
85 | | -# rev: 7.0.0 |
86 | | -# hooks: |
87 | | -# - id: flake8 |
0 commit comments