-
Notifications
You must be signed in to change notification settings - Fork 110
/
.pre-commit-config.yaml
82 lines (82 loc) · 2.02 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
70
71
72
73
74
75
76
77
78
79
80
81
82
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files
- id: check-toml
- id: check-merge-conflict
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.6
hooks:
- id: clang-format
files: src/.*\.(cxx|hxx)$
exclude: ^deps/
- repo: https://github.com/hhatto/autopep8
rev: v2.2.0
hooks:
- id: autopep8
exclude: ^(deps/|src/)
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
exclude: |
(?x)^(
deps/|
src/|
simple_acouchbase.py|
simple_couchbase.py|
simple_txcouchbase.py|
couchbase_kv_tests.py|
examples/
)
args:
[
--max-line-length=120,
--max-complexity=10
]
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
exclude: |
(?x)^(
deps/|
src/|
examples/txcouchbase/
)
args:
[
"--multi-line 1",
"--force-grid-wrap 3",
"--use-parentheses True",
"--ensure-newline-before-comments True",
"--line-length 120",
"--order-by-type True"
]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.9
hooks:
- id: bandit
exclude: |
(?x)^(
deps/|
src/|
acouchbase/tests/|
txcouchbase/tests/|
couchbase/tests/|
tests/|
simple_acouchbase.py|
simple_couchbase.py|
simple_txcouchbase.py|
couchbase_kv_tests.py|
couchbase_version.py
)
args:
[
--quiet
]