ITPLT-3356 merged master

This commit is contained in:
bmeehan
2024-03-08 07:48:10 +11:00
6 changed files with 143 additions and 96 deletions

49
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,49 @@
---
default_install_hook_types: [pre-commit, prepare-commit-msg]
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
exclude: '(vault.yml.template|filter_catalina.yaml.j2)'
- id: trailing-whitespace
- repo: https://github.com/avilaton/add-msg-issue-prefix-hook
rev: v0.0.9
hooks:
- id: add-msg-issue-prefix
args:
- --template={}
- --pattern=[a-zA-Z0-9]{1,10}-[0-9]{1,6}
- repo: https://github.com/ansible/ansible-lint.git
rev: v6.12.2
hooks:
- id: ansible-lint
additional_dependencies:
- .
- ansible-core==2.13.10
- jmespath
language_version: python3.8
- repo: https://github.com/IamTheFij/ansible-pre-commit.git
rev: v0.1.2
hooks:
- id: encryption-check
always_run: true
files: vault.ya?ml$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.55.0
hooks:
- id: eslint
language_version: 14.19.1
files: nginx-rewrite-scripts/.*\.[jt]sx?$
args:
- --config=scripts/nginx-rewrite-scripts/.eslintrc.cjs
additional_dependencies:
- eslint@8.17.0
- eslint-config-airbnb-base@15.0.0
- eslint-plugin-import@2.26.0
stages:
- manual