Skip to content

Commit 71807ef

Browse files
Create .pre-commit-config.yaml
Signed-off-by: Julius von Kohout <[email protected]>
1 parent b6c1483 commit 71807ef

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 24.2.0
4+
hooks:
5+
- id: black
6+
files: ^(common|example)/.*\.py$
7+
exclude: .*upstream.*
8+
9+
- repo: https://github.com/adrienverge/yamllint
10+
rev: v1.35.1
11+
hooks:
12+
- id: yamllint
13+
files: ^(common|example|hack|tests|\.github)/.*\.ya?ml$
14+
exclude: .*upstream.*
15+
args: [--config-file=.yamllint.yaml]
16+
17+
- repo: https://github.com/shellcheck-py/shellcheck-py
18+
rev: v0.9.0.6
19+
hooks:
20+
- id: shellcheck
21+
files: ^.*\.sh$
22+
exclude: (^applications/.*|.*upstream.*)

0 commit comments

Comments
 (0)