mirror of
https://github.com/saltstack-formulas/packages-formula.git
synced 2025-04-17 10:10:27 +00:00
Merge 74ce9c7364
into 34469f9cf9
This commit is contained in:
commit
277d152b3f
1 changed files with 34 additions and 16 deletions
|
@ -24,46 +24,62 @@ repos:
|
|||
name: Check commit message using commitlint
|
||||
description: Lint commit message against @commitlint/config-conventional rules
|
||||
stages: [commit-msg]
|
||||
additional_dependencies: ['@commitlint/config-conventional@8.3.4']
|
||||
- id: commitlint-travis
|
||||
stages: [manual]
|
||||
additional_dependencies: ['@commitlint/config-conventional@8.3.4']
|
||||
always_run: true
|
||||
additional_dependencies: ['@commitlint/config-conventional@17.1.0']
|
||||
- repo: https://github.com/rubocop-hq/rubocop
|
||||
rev: v1.30.1
|
||||
rev: v1.57.0
|
||||
hooks:
|
||||
- id: rubocop
|
||||
name: Check Ruby files with rubocop
|
||||
args: [--debug]
|
||||
always_run: true
|
||||
pass_filenames: false
|
||||
- repo: https://github.com/shellcheck-py/shellcheck-py
|
||||
rev: v0.8.0.4
|
||||
rev: v0.9.0.6
|
||||
hooks:
|
||||
- id: shellcheck
|
||||
name: Check shell scripts with shellcheck
|
||||
files: ^.*\.(sh|bash|ksh)$
|
||||
types: []
|
||||
- repo: https://github.com/adrienverge/yamllint
|
||||
rev: v1.26.3
|
||||
rev: v1.32.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
name: Check YAML syntax with yamllint
|
||||
args: [--strict, '.']
|
||||
always_run: true
|
||||
pass_filenames: false
|
||||
args: [--strict]
|
||||
types: [file]
|
||||
# Files to include
|
||||
# 1. Obvious YAML files
|
||||
# 2. `pillar.example` and similar files
|
||||
# 3. SLS files under directory `test/` which are pillar files
|
||||
# Files to exclude
|
||||
# 1. SLS files under directory `test/` which are state files
|
||||
# 2. `kitchen.vagrant.yml`, which contains Embedded Ruby (ERB) template syntax
|
||||
# 3. YAML files heavily reliant on Jinja
|
||||
files: |
|
||||
(?x)^(
|
||||
.*\.yaml|
|
||||
.*\.yml|
|
||||
\.salt-lint|
|
||||
\.yamllint|
|
||||
.*\.example|
|
||||
test/.*\.sls
|
||||
)$
|
||||
exclude: |
|
||||
(?x)^(
|
||||
kitchen.vagrant.yml|
|
||||
test/.*/states/.*\.sls
|
||||
)$
|
||||
- repo: https://github.com/warpnet/salt-lint
|
||||
rev: v0.8.0
|
||||
rev: v0.9.2
|
||||
hooks:
|
||||
- id: salt-lint
|
||||
name: Check Salt files using salt-lint
|
||||
files: ^.*\.(sls|jinja|j2|tmpl|tst)$
|
||||
- repo: https://github.com/myint/rstcheck
|
||||
rev: 3f929574
|
||||
rev: v6.2.0
|
||||
hooks:
|
||||
- id: rstcheck
|
||||
name: Check reST files using rstcheck
|
||||
exclude: 'docs/CHANGELOG.rst'
|
||||
additional_dependencies: [sphinx==7.2.6]
|
||||
- repo: https://github.com/saltstack-formulas/mirrors-rst-lint
|
||||
rev: v1.3.2
|
||||
hooks:
|
||||
|
@ -73,5 +89,7 @@ repos:
|
|||
(?x)^(
|
||||
docs/CHANGELOG.rst|
|
||||
docs/TOFS_pattern.rst|
|
||||
docs/CONTRIBUTING_DOCS.rst|
|
||||
docs/index.rst|
|
||||
)$
|
||||
additional_dependencies: [pygments==2.9.0]
|
||||
additional_dependencies: [pygments==2.16.1]
|
||||
|
|
Loading…
Add table
Reference in a new issue