mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-10-08 20:43:27 +02:00
chore: apply template copier-ssf-ci at version v2.0.0
This commit is contained in:
1 parent
bf52207a9b
commit
5f4333cebc
15 files changed
+904
-860
No files matched your search
+35
-18
@@ -15,24 +15,26 @@ ci:
|
||||
autoupdate_schedule: quarterly
|
||||
skip: []
|
||||
submodules: false
|
||||
default_stages: [commit]
|
||||
default_stages: [pre-commit]
|
||||
repos:
|
||||
- repo: https://github.com/dafyddj/commitlint-pre-commit-hook
|
||||
rev: v2.3.0
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v5.0.0
|
||||
hooks:
|
||||
- id: check-merge-conflict
|
||||
name: Check for Git merge conflicts
|
||||
args: [--assume-in-merge]
|
||||
exclude: ^docs/AUTHORS.rst$
|
||||
- repo: https://github.com/dafyddj/mirrors-commitlint
|
||||
rev: v19.8.1
|
||||
hooks:
|
||||
- id: commitlint
|
||||
name: Check commit message using commitlint
|
||||
description: Lint commit message against @commitlint/config-conventional rules
|
||||
stages: [commit-msg]
|
||||
additional_dependencies: ['@commitlint/config-conventional@17.1.0']
|
||||
- id: commitlint-ci
|
||||
- repo: https://github.com/rubocop-hq/rubocop
|
||||
rev: v1.57.0
|
||||
rev: v1.75.8
|
||||
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.9.0.6
|
||||
hooks:
|
||||
@@ -41,7 +43,7 @@ repos:
|
||||
files: ^.*\.(sh|bash|ksh)$
|
||||
types: []
|
||||
- repo: https://github.com/adrienverge/yamllint
|
||||
rev: v1.32.0
|
||||
rev: v1.37.1
|
||||
hooks:
|
||||
- id: yamllint
|
||||
name: Check YAML syntax with yamllint
|
||||
@@ -55,6 +57,7 @@ repos:
|
||||
# 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
|
||||
# 4. `.copier-answers.yml` and its variants which are auto-generated
|
||||
files: |
|
||||
(?x)^(
|
||||
.*\.yaml|
|
||||
@@ -66,11 +69,9 @@ repos:
|
||||
)$
|
||||
exclude: |
|
||||
(?x)^(
|
||||
\.copier-answers(\..+)?\.ya?ml|
|
||||
kitchen.vagrant.yml|
|
||||
test/.*/states/.*\.sls|
|
||||
salt/osfamilymap.yaml|
|
||||
salt/osmap.yaml|
|
||||
salt/osfingermap.yaml
|
||||
test/.*/states/.*\.sls
|
||||
)$
|
||||
- repo: https://github.com/warpnet/salt-lint
|
||||
rev: v0.9.2
|
||||
@@ -78,15 +79,15 @@ repos:
|
||||
- id: salt-lint
|
||||
name: Check Salt files using salt-lint
|
||||
files: ^.*\.(sls|jinja|j2|tmpl|tst)$
|
||||
- repo: https://github.com/myint/rstcheck
|
||||
rev: v6.2.0
|
||||
- repo: https://github.com/rstcheck/rstcheck
|
||||
rev: v6.2.5
|
||||
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
|
||||
rev: v1.4.0
|
||||
hooks:
|
||||
- id: rst-lint
|
||||
name: Check reST files using rst-lint
|
||||
@@ -94,5 +95,21 @@ repos:
|
||||
(?x)^(
|
||||
docs/CHANGELOG.rst|
|
||||
docs/TOFS_pattern.rst|
|
||||
docs/CONTRIBUTING_DOCS.rst|
|
||||
docs/index.rst|
|
||||
)$
|
||||
additional_dependencies: [pygments==2.16.1]
|
||||
- repo: https://github.com/renovatebot/pre-commit-hooks
|
||||
rev: 40.36.8
|
||||
hooks:
|
||||
- id: renovate-config-validator
|
||||
name: Check Renovate config with renovate-config-validator
|
||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||
rev: 0.33.0
|
||||
hooks:
|
||||
- id: check-github-workflows
|
||||
name: Check GitHub workflows with check-jsonschema
|
||||
args: [--verbose]
|
||||
- id: check-gitlab-ci
|
||||
name: Check GitLab CI config with check-jsonschema
|
||||
args: [--verbose]
|
||||
Reference in new issue
Block a user