1 # -*- coding: utf-8 -*-
4 # Copyright (C) The Arvados Authors. All rights reserved.
6 # SPDX-License-Identifier: Apache-2.0
8 # See https://pre-commit.com for more information
9 # See https://pre-commit.com/hooks.html for more hooks
10 default_stages: [commit]
12 - repo: https://github.com/rubocop-hq/rubocop
16 name: Check Ruby files with rubocop
20 - repo: https://github.com/shellcheck-py/shellcheck-py
24 name: Check shell scripts with shellcheck
25 files: ^.*\.(sh|bash|ksh)$
27 - repo: https://github.com/adrienverge/yamllint
31 name: Check YAML syntax with yamllint
35 - repo: https://github.com/warpnet/salt-lint
39 name: Check Salt files using salt-lint
40 files: ^.*\.(sls|jinja|j2|tmpl|tst)$
41 - repo: https://github.com/myint/rstcheck
45 name: Check reST files using rstcheck
46 exclude: 'docs/CHANGELOG.rst'
47 - repo: https://github.com/saltstack-formulas/mirrors-rst-lint
51 name: Check reST files using rst-lint
55 docs/TOFS_pattern.rst|
56 docs/CONTRIBUTING_DOCS.rst|
59 additional_dependencies: [pygments==2.9.0]