Verified Commit 2a006158 authored by Dan Thomson's avatar Dan Thomson
Browse files

Add pre-commit config check and set a stage for the linting job

parent 52e28672
Pipeline #30861 passed with stage
in 24 seconds
......@@ -9,5 +9,6 @@ include:
pylint:
extends: .python_pylint
stage: test
tags:
- docker-runner
---
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=.travis.yml",
"."
]
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
rev: v1.0.1
hooks:
- id: gitlab-ci-linter
args:
- --server
- "https://gitlab.triumf.ca"
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