Mohammed Naser | c3115c2 | 2022-08-30 18:52:23 -0400 | [diff] [blame] | 1 | repos: |
| 2 | - repo: https://github.com/compilerla/conventional-pre-commit |
| 3 | rev: v2.0.0 |
| 4 | hooks: |
| 5 | - id: conventional-pre-commit |
Mohammed Naser | f3a14a3 | 2022-09-19 15:15:39 -0400 | [diff] [blame] | 6 | stages: |
Mohammed Naser | 6bf6535 | 2022-09-19 16:40:06 -0400 | [diff] [blame] | 7 | - commit-msg |
| 8 | |
Mohammed Naser | effebad | 2022-09-19 18:10:14 -0400 | [diff] [blame] | 9 | # NOTE(mnaser): Switch back to upstream once the following PR is merged: |
| 10 | # https://github.com/ansible/ansible-lint/pull/2457 |
| 11 | - repo: https://github.com/mnaser/ansible-lint |
| 12 | rev: aa2b8d1 |
Mohammed Naser | 6bf6535 | 2022-09-19 16:40:06 -0400 | [diff] [blame] | 13 | hooks: |
| 14 | - id: ansible-lint |
| 15 | files: \.(yaml|yml)$ |
Mohammed Naser | f3a14a3 | 2022-09-19 15:15:39 -0400 | [diff] [blame] | 16 | |
| 17 | - repo: https://github.com/psf/black |
| 18 | rev: 22.8.0 |
| 19 | hooks: |
| 20 | - id: black |
| 21 | |
Mohammed Naser | 05ad921 | 2022-09-19 16:46:29 -0400 | [diff] [blame] | 22 | - repo: https://github.com/pycqa/flake8 |
| 23 | rev: 5.0.4 |
| 24 | hooks: |
| 25 | - id: flake8 |
| 26 | |
Mohammed Naser | f3a14a3 | 2022-09-19 15:15:39 -0400 | [diff] [blame] | 27 | - repo: https://github.com/pycqa/isort |
| 28 | rev: 5.10.1 |
| 29 | hooks: |
| 30 | - id: isort |
| 31 | |
| 32 | - repo: https://github.com/pre-commit/pre-commit-hooks |
| 33 | rev: v4.3.0 |
| 34 | hooks: |
| 35 | - id: end-of-file-fixer |
| 36 | - id: trailing-whitespace |