/
.pre-commit-config.yaml
49 lines (49 loc) · 1.47 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
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
types: [text]
files: ^(helpers/python|.+\.py)$
exclude: completions/
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
args: [--config=test/setup.cfg]
additional_dependencies: [flake8-bugbear==20.1.4]
types: [text]
files: ^(helpers/python|.+\.py)$
exclude: completions/
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
args: [--settings-path=test/setup.cfg]
types: [text]
files: ^(helpers/python|.+\.py)$
exclude: completions/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.770
hooks:
- id: mypy
args: [--config-file=test/setup.cfg]
# Intentionally not run on helpers/python (support very old versions)
exclude: completions/
- repo: https://github.com/ryanrhee/shellcheck-py
rev: v0.7.0.1-1
hooks:
- id: shellcheck
args: [
-S, error, # https://github.com/koalaman/shellcheck/issues/1554
-f, gcc,
]
types: [text]
files: ^(bash_completion|completions/.+|test/run*|.+\.sh(\.in)?)$
exclude: completions/Makefile.*$
- repo: https://github.com/perltidy/perltidy
rev: cbb4a687dd331db69219599d84d527397402efdd
hooks:
- id: perltidy
types: [text]
files: ^(helpers/perl|.+\.p[ml])$