update pre-commit config

This commit is contained in:
Louis Abel 2023-02-15 16:48:47 -07:00
parent 20ce9ecab2
commit dbac205ba7
Signed by: label
GPG Key ID: B37E62D143879B36
3 changed files with 11 additions and 9 deletions

View File

@ -1,6 +1,6 @@
# .ansible-lint ---
warn_list: warn_list:
- '204' # Lines should be less than 160 characters - '204' # Lines should be less than 160 characters
- '701' # meta/main.yml should contain relevant info - '701' # meta/main.yml should contain relevant info
skip_list: skip_list:
- '106' # Role name must match ^[a-z][a-z0-9_]+$ pattern - '106' # Role name must match ^[a-z][a-z0-9_]+$ pattern

View File

@ -1,7 +1,7 @@
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0 rev: v4.4.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
@ -17,15 +17,17 @@ repos:
- id: ansible-lint - id: ansible-lint
name: Ansible-lint name: Ansible-lint
description: This hook runs ansible-lint. description: This hook runs ansible-lint.
entry: ansible-lint --force-color entry: ansible-lint -v --force-color
language: python language: python
# do not pass files to ansible-lint, see: # do not pass files to ansible-lint, see:
# https://github.com/ansible/ansible-lint/issues/611 # https://github.com/ansible/ansible-lint/issues/611
pass_filenames: false pass_filenames: false
always_run: true always_run: true
additional_dependencies:
- ansible-core>=2.13.3
- repo: https://github.com/adrienverge/yamllint.git - repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.0 rev: v1.29.0
hooks: hooks:
- id: yamllint - id: yamllint
files: \.(yaml|yml)$ files: \.(yaml|yml)$

View File

@ -1,6 +1,6 @@
--- ---
# No tasks # No tasks
- name: "no tasks" - name: "No tasks"
debug: ansible.builtin.debug:
msg: "Please import the task as needed in your playbook." msg: "Please import the task as needed in your playbook."
... ...