Skip to content

Commit eeed2c2

Browse files
committed
updated pre-commit
1 parent 8c67cb4 commit eeed2c2

File tree

1 file changed

+56
-67
lines changed

1 file changed

+56
-67
lines changed

.pre-commit-config.yaml

Lines changed: 56 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,76 @@
11
exclude: '^$'
22
fail_fast: false
33
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
2734

2835
# 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]
3441

3542
# 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
4148
# - 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
4552

4653
# Python tools
47-
- repo: https://github.com/astral-sh/ruff-pre-commit
54+
- repo: https://github.com/astral-sh/ruff-pre-commit
4855
# Ruff version.
49-
rev: v0.9.6
50-
hooks:
56+
rev: v0.11.10
57+
hooks:
5158
# 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]
5461
# Run the formatter.
55-
- id: ruff-format
62+
- id: ruff-format
5663

5764
# 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"
6572

6673
- repo: https://github.com/shellcheck-py/shellcheck-py
6774
rev: v0.10.0.1
6875
hooks:
6976
- 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

Comments
 (0)