blob: 17c6b27f707c52aa276422244128714bbe778dfe [file] [log] [blame]
Mohammed Naser273d3ca2023-01-29 22:28:54 +00001exclude: '^(roles/kube_prometheus_stack/files/jsonnet|charts)'
Mohammed Naser7d3c7972022-11-07 10:54:56 -05002
Mohammed Naserc3115c22022-08-30 18:52:23 -04003repos:
Mohammed Naser4b24d9b2022-11-02 13:14:52 -04004 - repo: https://github.com/pre-commit/pre-commit-hooks
5 rev: v4.3.0
6 hooks:
7 - id: end-of-file-fixer
8 - id: trailing-whitespace
Mohammed Naser403c0422024-01-16 14:36:28 -05009 exclude: ^images/.*/patches/.*/.*\.patch$
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040010
Mohammed Naserc3115c22022-08-30 18:52:23 -040011 - repo: https://github.com/compilerla/conventional-pre-commit
12 rev: v2.0.0
13 hooks:
14 - id: conventional-pre-commit
Mohammed Naserf3a14a32022-09-19 15:15:39 -040015 stages:
Mohammed Naser6bf65352022-09-19 16:40:06 -040016 - commit-msg
17
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040018 - repo: https://github.com/ansible/ansible-lint
Tadas Sutkaitis4ace4182023-02-27 04:31:52 +020019 rev: v6.13.1
Mohammed Naser6bf65352022-09-19 16:40:06 -040020 hooks:
21 - id: ansible-lint
22 files: \.(yaml|yml)$
Mohammed Naserf3a14a32022-09-19 15:15:39 -040023
24 - repo: https://github.com/psf/black
25 rev: 22.8.0
26 hooks:
27 - id: black
28
Mohammed Naser05ad9212022-09-19 16:46:29 -040029 - repo: https://github.com/pycqa/flake8
30 rev: 5.0.4
31 hooks:
32 - id: flake8
33
Mohammed Naserf3a14a32022-09-19 15:15:39 -040034 - repo: https://github.com/pycqa/isort
okozachenko120352987402023-01-31 00:27:49 +110035 rev: 5.12.0
Mohammed Naserf3a14a32022-09-19 15:15:39 -040036 hooks:
37 - id: isort
38
Mohammed Naser26dfd192022-11-02 14:56:22 -040039 - repo: https://github.com/igorshubovych/markdownlint-cli
40 rev: v0.32.2
Mohammed Naserf3a14a32022-09-19 15:15:39 -040041 hooks:
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040042 - id: markdownlint
Mohammed Naser26dfd192022-11-02 14:56:22 -040043 args: ["--ignore=CHANGELOG.md"]