Bump linters
- bump all linters - ansible-lint 5.0.7 included a retry feature for installing collections (we had one gate failure today due to a glitch in the galaxy, server. - flake8 was moved to github - remove yamllint as ansible-lint already runs it Change-Id: Ie4a6787f98759792031666378a6044fe34ba9d51
This commit is contained in:
parent
f34cf452d7
commit
4290b71905
|
@ -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.2.0
|
rev: v3.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
@ -14,8 +14,8 @@ repos:
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
files: .*\.(yaml|yml)$
|
files: .*\.(yaml|yml)$
|
||||||
args: [--allow-multiple-documents]
|
args: [--allow-multiple-documents]
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://github.com/pycqa/flake8
|
||||||
rev: 3.8.3
|
rev: 3.9.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
additional_dependencies: [flake8-typing-imports==1.6.0]
|
additional_dependencies: [flake8-typing-imports==1.6.0]
|
||||||
|
@ -23,15 +23,8 @@ repos:
|
||||||
# TODO(cloudnull): These codes were added to pass the lint check.
|
# TODO(cloudnull): These codes were added to pass the lint check.
|
||||||
# All of these ignore codes should be resolved in
|
# All of these ignore codes should be resolved in
|
||||||
# future PRs.
|
# future PRs.
|
||||||
- repo: https://github.com/adrienverge/yamllint.git
|
|
||||||
rev: v1.24.2
|
|
||||||
hooks:
|
|
||||||
- id: yamllint
|
|
||||||
files: \.(yaml|yml)$
|
|
||||||
types: [file, yaml]
|
|
||||||
entry: yamllint --strict -f parsable
|
|
||||||
- repo: https://github.com/ansible-community/ansible-lint
|
- repo: https://github.com/ansible-community/ansible-lint
|
||||||
rev: v5.0.3
|
rev: v5.0.7
|
||||||
hooks:
|
hooks:
|
||||||
- id: ansible-lint
|
- id: ansible-lint
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
|
|
Loading…
Reference in New Issue