Update repo tests in Debian's family
[arvados-formula.git] / .pre-commit-config.yaml
1 # -*- coding: utf-8 -*-
2 # vim: ft=yaml
3 ---
4 # See https://pre-commit.com for more information
5 # See https://pre-commit.com/hooks.html for more hooks
6 default_stages: [commit]
7 repos:
8   - repo: https://github.com/rubocop-hq/rubocop
9     rev: v1.9.1
10     hooks:
11       - id: rubocop
12         name: Check Ruby files with rubocop
13         args: [--debug]
14         always_run: true
15         pass_filenames: false
16   - repo: https://github.com/shellcheck-py/shellcheck-py
17     rev: v0.7.1.1
18     hooks:
19       - id: shellcheck
20         name: Check shell scripts with shellcheck
21         files: ^.*\.(sh|bash|ksh)$
22         types: []
23   - repo: https://github.com/adrienverge/yamllint
24     rev: v1.23.0
25     hooks:
26       - id: yamllint
27         name: Check YAML syntax with yamllint
28         args: [--strict, '.']
29         always_run: true
30         pass_filenames: false
31   - repo: https://github.com/warpnet/salt-lint
32     rev: v0.3.0
33     hooks:
34       - id: salt-lint
35         name: Check Salt files using salt-lint
36         files: ^.*\.(sls|jinja|j2|tmpl|tst)$
37   - repo: https://github.com/myint/rstcheck
38     rev: 3f929574
39     hooks:
40       - id: rstcheck
41         name: Check reST files using rstcheck
42         exclude: 'docs/CHANGELOG.rst'
43   - repo: https://github.com/saltstack-formulas/mirrors-rst-lint
44     rev: v1.3.2
45     hooks:
46       - id: rst-lint
47         name: Check reST files using rst-lint
48         exclude: |
49             (?x)^(
50                 docs/CHANGELOG.rst|
51                 docs/TOFS_pattern.rst|
52                 docs/CONTRIBUTING_DOCS.rst|
53                 docs/index.rst|
54             )$
55         additional_dependencies: [pygments==2.9.0]