mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore: improve lefthook configuration
This commit is contained in:
@@ -6,6 +6,14 @@ skip_output:
|
||||
- skips
|
||||
|
||||
|
||||
bootstrap:
|
||||
parallel: true
|
||||
commands:
|
||||
commitlint:
|
||||
run: npm install --save-dev '@commitlint/cli' '@commitlint/config-conventional'
|
||||
venv:
|
||||
run: make create-venv
|
||||
|
||||
debug:
|
||||
parallel: true
|
||||
commands:
|
||||
@@ -13,14 +21,6 @@ debug:
|
||||
glob: '.commitlintrc.js'
|
||||
run: node_modules/.bin/commitlint --print-config
|
||||
|
||||
pre-flight:
|
||||
parallel: true
|
||||
commands:
|
||||
commitlint:
|
||||
run: npm install --save-dev '@commitlint/cli' '@commitlint/config-conventional'
|
||||
venv:
|
||||
run: make recreate-venv
|
||||
|
||||
|
||||
lint:
|
||||
parallel: true
|
||||
@@ -69,7 +69,7 @@ validate:
|
||||
glob: '*.{yaml,yml}'
|
||||
run: >-
|
||||
echo '{all_files}'
|
||||
| xargs -t yq '.'
|
||||
| xargs -t .venv/bin/yq '.'
|
||||
|
||||
|
||||
pre-commit:
|
||||
@@ -81,7 +81,7 @@ pre-commit:
|
||||
validate-yaml:
|
||||
<<: *yq
|
||||
run: >-
|
||||
yq '.' {staged_files} > /dev/null
|
||||
.venv/bin/yq '.' {staged_files} > /dev/null
|
||||
&& echo 'All YAML files are readable'
|
||||
validate-ansible-playbooks:
|
||||
<<: *ansible-playbook-syntax-check
|
||||
|
||||
Reference in New Issue
Block a user