-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (53 loc) · 1.73 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
60 lines (53 loc) · 1.73 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: mixed-line-ending
- id: check-ast
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
# Exclude checks that are commonly problematic in organization scripts
# SC1090: Can't follow non-constant source (dynamic sourcing)
# SC2086: Double quote to prevent globbing (intentional word splitting)
# SC2034: Variable appears unused (used by sourced scripts)
# SC1091: Not following included files (dynamic includes)
args: ['--exclude=SC1090,SC2086,SC2034,SC1091']
- repo: https://github.com/golangci/golangci-lint
rev: v2.12.2
hooks:
- id: golangci-lint-config-verify
- id: golangci-lint-full
- repo: https://github.com/RedHatInsights/processing-tools
rev: v0.4.4
hooks:
- id: abcgo
args: ['--threshold=40']
# - id: go-version-consistency
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.3
hooks:
# Adding a set of rules to ruff check to match pyupgrade rules
- id: ruff-check
args:
- '--fix'
- '--line-length=100'
- '--select=UP,F632,E,W,F,I,N,B,C4,SIM'
- id: ruff-format
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.15.1
hooks:
- id: hadolint
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 44.33.2
hooks:
- id: renovate-config-validator