repos: | |
- repo: https://github.com/compilerla/conventional-pre-commit | |
rev: v2.0.0 | |
hooks: | |
- id: conventional-pre-commit | |
stages: | |
- commit-msg | |
# NOTE(mnaser): Switch back to upstream once the following PR is merged: | |
# https://github.com/ansible/ansible-lint/pull/2457 | |
- repo: https://github.com/mnaser/ansible-lint | |
rev: aa2b8d1 | |
hooks: | |
- id: ansible-lint | |
files: \.(yaml|yml)$ | |
- repo: https://github.com/psf/black | |
rev: 22.8.0 | |
hooks: | |
- id: black | |
- repo: https://github.com/pycqa/flake8 | |
rev: 5.0.4 | |
hooks: | |
- id: flake8 | |
- repo: https://github.com/pycqa/isort | |
rev: 5.10.1 | |
hooks: | |
- id: isort | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.3.0 | |
hooks: | |
- id: end-of-file-fixer | |
- id: trailing-whitespace |