-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
58 lines (58 loc) · 1.67 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
54
55
56
57
58
---
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-shebang-scripts-are-executable
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: detect-private-key
name: check for debug statements
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
name: check for hardcoded secrets
exclude: docker-compose.*
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.1-beta
hooks:
- id: hadolint
name: check Dockerfile
args: [--ignore, DL3008, --ignore, DL3045]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.8
hooks:
- id: bandit
name: security audit for python
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
name: check commit message
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.89.0
hooks:
- id: terraform_fmt
name: terraform format
- id: terraform_validate
name: terraform validate
- id: terraform_checkov
name: terraform checkov
args:
- --args=--quiet --compact --download-external-modules=true --check=MEDIUM --directory=terraform
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
hooks:
- id: ruff
name: ruff check
types_or: [ python ]
args: [ --select, I, --fix ]
- id: ruff-format
name: ruff format
types_or: [ python ]