blob: 8c0dcdb9fce51af2e9d95f636418016703700fc2 [file] [log] [blame]
Mohammed Naserc3115c22022-08-30 18:52:23 -04001repos:
2 - repo: https://github.com/compilerla/conventional-pre-commit
3 rev: v2.0.0
4 hooks:
5 - id: conventional-pre-commit
Mohammed Naserf3a14a32022-09-19 15:15:39 -04006 stages:
Mohammed Naser6bf65352022-09-19 16:40:06 -04007 - commit-msg
8
Mohammed Nasereffebad2022-09-19 18:10:14 -04009 # 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 Naser6bf65352022-09-19 16:40:06 -040013 hooks:
14 - id: ansible-lint
15 files: \.(yaml|yml)$
Mohammed Naserf3a14a32022-09-19 15:15:39 -040016
17 - repo: https://github.com/psf/black
18 rev: 22.8.0
19 hooks:
20 - id: black
21
Mohammed Naser05ad9212022-09-19 16:46:29 -040022 - repo: https://github.com/pycqa/flake8
23 rev: 5.0.4
24 hooks:
25 - id: flake8
26
Mohammed Naserf3a14a32022-09-19 15:15:39 -040027 - 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