mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
refactor(management): start the move to lefthook
This commit is contained in:
16
.gitignore
vendored
16
.gitignore
vendored
@@ -1,8 +1,16 @@
|
||||
.DS_Store
|
||||
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
!.vscode/settings.json
|
||||
/.vscode/*
|
||||
!/.vscode/extensions.json
|
||||
!/.vscode/settings.json
|
||||
|
||||
/.lefthook-local.yml
|
||||
|
||||
/node_modules/
|
||||
/package.json
|
||||
/package-lock.json
|
||||
|
||||
__pycache__/
|
||||
|
||||
.obsidian/
|
||||
|
||||
@@ -15,5 +23,3 @@
|
||||
*.tfstate.backup
|
||||
|
||||
.pulumi/
|
||||
|
||||
__pycache__/
|
||||
|
||||
21
.lefthook.yml
Normal file
21
.lefthook.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
no_tty: true
|
||||
|
||||
lint:
|
||||
parallel: true
|
||||
commands:
|
||||
yamllint: &yamllint
|
||||
glob: "*.{yaml,yml}"
|
||||
run: >-
|
||||
docker run --rm -v "$PWD:/code" 'registry.gitlab.com/pipeline-components/yamllint:latest'
|
||||
yamllint '.'
|
||||
|
||||
pre-commit:
|
||||
parallel: true
|
||||
commands:
|
||||
yamllint:
|
||||
<<: *yamllint
|
||||
|
||||
# commit-msg:
|
||||
# commands:
|
||||
# commitlint:
|
||||
# run: commitlint --edit
|
||||
@@ -6,5 +6,6 @@ extends: default
|
||||
|
||||
rules:
|
||||
line-length:
|
||||
allow-non-breakable-inline-mappings: true
|
||||
level: warning
|
||||
max: 120
|
||||
allow-non-breakable-inline-mappings: true
|
||||
|
||||
Reference in New Issue
Block a user