Add pre-commit config

parent 324aafda
Pipeline #31300 failed with stage
in 5 minutes and 8 seconds
---
exclude_paths:
- ./.venv
warn_list:
- '106' # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v3.2.0"
hooks:
- id: check-added-large-files
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/ansible/ansible-lint.git
rev: v4.3.5
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
args: [
"--exclude=molecule/resources",
"--exclude=roles",
"--exclude=.gitlab-ci.yml",
"."
]
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
rev: v1.0.1
hooks:
- id: gitlab-ci-linter
args:
- '--server'
- 'https://gitlab.triumf.ca'
......@@ -2,9 +2,6 @@
# Based on ansible-lint config
extends: default
ignore: |
*.venv
rules:
braces:
max-spaces-inside: 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment