mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
chore: updated hook versions and improved the example
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||||
rev: v9.10.0
|
rev: v9.11.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: commitlint
|
- id: commitlint
|
||||||
stages:
|
stages:
|
||||||
@@ -40,7 +40,7 @@ repos:
|
|||||||
# - repo: https://github.com/ansible-community/ansible-lint
|
# - repo: https://github.com/ansible-community/ansible-lint
|
||||||
# # FIXME: need to figure this out, too many stupid issues.
|
# # FIXME: need to figure this out, too many stupid issues.
|
||||||
# # Using `ansible-lint -v ansible` for the time being.
|
# # Using `ansible-lint -v ansible` for the time being.
|
||||||
# rev: v6.22.0
|
# rev: v6.22.1
|
||||||
# hooks:
|
# hooks:
|
||||||
# - id: ansible-lint
|
# - id: ansible-lint
|
||||||
# exclude: .*
|
# exclude: .*
|
||||||
|
|||||||
@@ -7,13 +7,17 @@
|
|||||||
exclude: ^FIXME/.*$ # ignore all files matching the regexp
|
exclude: ^FIXME/.*$ # ignore all files matching the regexp
|
||||||
fail_fast: true # stop at the first error
|
fail_fast: true # stop at the first error
|
||||||
repos:
|
repos:
|
||||||
|
|
||||||
|
# Conventions (e.g. naming, commit message, etc).
|
||||||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||||
rev: v9.5.0
|
rev: v9.11.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: commitlint
|
- id: commitlint
|
||||||
stages: # limit hook to specific stages
|
stages: # limit hook to specific stages
|
||||||
- commit-msg
|
- commit-msg
|
||||||
additional_dependencies: ['@commitlint/config-conventional']
|
additional_dependencies: ['@commitlint/config-conventional']
|
||||||
|
|
||||||
|
# Files style.
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.5.0
|
rev: v4.5.0
|
||||||
hooks:
|
hooks:
|
||||||
@@ -26,6 +30,14 @@ repos:
|
|||||||
args:
|
args:
|
||||||
- --markdown-linebreak-ext=md # ignore markdown's line break
|
- --markdown-linebreak-ext=md # ignore markdown's line break
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
|
||||||
|
# Files contents (e.g. secrets).
|
||||||
|
- repo: https://github.com/sirwart/ripsecrets
|
||||||
|
rev: v0.1.7
|
||||||
|
hooks:
|
||||||
|
- id: ripsecrets
|
||||||
|
|
||||||
|
# Files linting.
|
||||||
- repo: https://github.com/markdownlint/markdownlint
|
- repo: https://github.com/markdownlint/markdownlint
|
||||||
rev: v0.12.0
|
rev: v0.12.0
|
||||||
hooks:
|
hooks:
|
||||||
@@ -34,8 +46,16 @@ repos:
|
|||||||
- markdown
|
- markdown
|
||||||
args:
|
args:
|
||||||
- -r "~MD013" # ignore line-length rule
|
- -r "~MD013" # ignore line-length rule
|
||||||
|
- repo: https://github.com/tcort/markdown-link-check
|
||||||
|
rev: v3.11.2
|
||||||
|
hooks:
|
||||||
|
- id: markdown-link-check
|
||||||
|
- repo: https://github.com/adrienverge/yamllint
|
||||||
|
rev: v1.33.0
|
||||||
|
hooks:
|
||||||
|
- id: yamllint
|
||||||
- repo: https://github.com/ansible-community/ansible-lint
|
- repo: https://github.com/ansible-community/ansible-lint
|
||||||
rev: v6.20.3
|
rev: v6.22.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: ansible-lint
|
- id: ansible-lint
|
||||||
name: ansilint # use an alias
|
name: ansilint # use an alias
|
||||||
|
|||||||
Reference in New Issue
Block a user