| |
@@ -1,18 +1,37 @@
|
| |
- # See https://pre-commit.com for more information
|
| |
- # See https://pre-commit.com/hooks.html for more hooks
|
| |
+ ---
|
| |
repos:
|
| |
- - repo: https://github.com/pre-commit/pre-commit-hooks
|
| |
- rev: v2.4.0
|
| |
+ - repo: https://github.com/pre-commit/pre-commit-hooks
|
| |
+ rev: v4.0.1
|
| |
hooks:
|
| |
- - id: trailing-whitespace
|
| |
- - id: end-of-file-fixer
|
| |
- - id: check-yaml
|
| |
- - id: check-added-large-files
|
| |
- - id: check-ast
|
| |
- - id: check-merge-conflict
|
| |
- - id: check-toml
|
| |
- - id: debug-statements
|
| |
- - repo: https://gitlab.com/PyCQA/flake8
|
| |
- rev: master
|
| |
+ - id: check-yaml
|
| |
+ - id: check-added-large-files
|
| |
+ - id: check-toml
|
| |
+ - id: debug-statements
|
| |
+
|
| |
+ - repo: https://gitlab.com/PyCQA/flake8
|
| |
+ rev: 4.0.1
|
| |
hooks:
|
| |
- - id: flake8
|
| |
+ - id: flake8
|
| |
+
|
| |
+ - repo: https://github.com/psf/black
|
| |
+ rev: 21.11b1
|
| |
+ hooks:
|
| |
+ - id: black
|
| |
+ args:
|
| |
+ - --diff
|
| |
+ - --check
|
| |
+
|
| |
+ - repo: https://github.com/adrienverge/yamllint
|
| |
+ rev: v1.26.3
|
| |
+ hooks:
|
| |
+ - id: yamllint
|
| |
+ alias: yamllint-non-ansible
|
| |
+ name: yamllint (non-Ansible)
|
| |
+ files: '^[^(ci/)].*\.ya?ml$'
|
| |
+ - id: yamllint
|
| |
+ alias: yamllint-ansible
|
| |
+ name: yamllint (Ansible)
|
| |
+ files: '^ci/.*\.ya?ml$'
|
| |
+ args:
|
| |
+ - -c
|
| |
+ - .yamllint-ansible.yaml
|
| |