-
Notifications
You must be signed in to change notification settings - Fork 17
/
.pre-commit-config.yaml
69 lines (61 loc) · 1.68 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
59
60
61
62
63
64
65
66
67
68
69
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- id: check-json
- id: check-yaml
exclude: ^.cicd/
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: detect-aws-credentials
args:
- "--allow-missing-credentials"
- id: detect-private-key
- id: fix-byte-order-marker
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
exclude: ^tests/
args: [ "--py39-plus", "--keep-runtime-typing" ]
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies: [ black ]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [ "--profile", "black", "--filter-files" ]
- repo: local
hooks:
- id: arn-reset
name: replacing arn from test files
language: script
entry: .scripts/cleanup_placebo.sh
require_serial: true
files: "tests/*.json$"
# - repo: https://github.com/aws-cloudformation/cfn-lint
# rev: v0.78.1
# hooks:
# - id: cfn-lint
# files: .cicd/.*\.(json|yml|yaml)$
- repo: https://github.com/hadolint/hadolint
rev: v2.13.0-beta
hooks:
- id: hadolint-docker
args: [ "-t", "error" ]
- repo: https://github.com/iamthefij/docker-pre-commit
rev: v3.0.1
hooks:
- id: docker-compose-check