forked from scylladb/scylla-cluster-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (56 loc) · 1.71 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
exclude: >
(?x)^(
\.git/.*|
data_dir/latte_stress_output\.log|
argus/.*
)$
- id: end-of-file-fixer
exclude: ^(\.git/.*|argus/.*)$
- id: check-yaml
args:
- --allow-multiple-documents
exclude: >
(?x)^(
tests/.*|
data_dir/scylla\.yaml|
sdcm/k8s_configs/minio/templates/.*|
sdcm/k8s_configs/monitoring/prometheus-operator/.*|
sdcm/k8s_configs/provisioner/templates/.*|
sdcm/k8s_configs/eks/storageclass_gp3.yaml
)$
- id: check-added-large-files
exclude: >
(?x)^(
sdcm/k8s_configs/monitoring/prometheus-operator/.*
)$
- id: check-json
- id: detect-aws-credentials
- id: detect-private-key
exclude: ^data_dir/ssl_conf/.*$
- repo: local
hooks:
- id: autopep8
name: autopep8
entry: autopep8 -i -j 2 --max-line-length=120 --ignore=E226,E24,W50,W690,E402,E731
language: system
types: [python]
exclude: '(\.sh$|argus/.*)'
- id: ruff
name: ruff
entry: ruff check --fix --preview
language: system
types: [python]
exclude: ^argus/.*$
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v5.0.0
hooks:
- id: commitlint
stages: [commit-msg]
language_version: 16.15.1