forked from scylladb/argus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (43 loc) · 1.25 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
# 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: v2.0.0
hooks:
- id: trailing-whitespace
exclude: .git/*
- id: end-of-file-fixer
exclude: .git/*
- id: check-yaml
args:
- --allow-multiple-documents
exclude: >
(?x)^(
tests/.*|
data_dir/scylla.yaml|
sdcm/k8s_configs/minio/templates/.*|
sdcm/k8s_configs/provisioner/templates/.*
)$
- id: check-added-large-files
- 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
language: system
types: [python]
- id: pylint
name: pylint
entry: pylint -j 2
language: system
exclude: docker/alternator-dns/*
types: [python]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v2.2.1
hooks:
- id: commitlint
stages: [commit-msg]