blob: 761474eec2741e5242f275a0388d71de0607cdfa [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
Mohammed Naser891a2902024-01-23 09:47:47 -05008 exclude: ^images/.*/patches/.*\.patch$
Mohammed Naser4b24d9b2022-11-02 13:14:52 -04009 - id: trailing-whitespace
Mohammed Naser891a2902024-01-23 09:47:47 -050010 exclude: ^images/.*/patches/.*\.patch$
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040011
Mohammed Naserc3115c22022-08-30 18:52:23 -040012 - repo: https://github.com/compilerla/conventional-pre-commit
13 rev: v2.0.0
14 hooks:
15 - id: conventional-pre-commit
Mohammed Naserf3a14a32022-09-19 15:15:39 -040016 stages:
Mohammed Naser6bf65352022-09-19 16:40:06 -040017 - commit-msg
18
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040019 - repo: https://github.com/ansible/ansible-lint
Tadas Sutkaitis4ace4182023-02-27 04:31:52 +020020 rev: v6.13.1
Mohammed Naser6bf65352022-09-19 16:40:06 -040021 hooks:
22 - id: ansible-lint
23 files: \.(yaml|yml)$
Mohammed Naserf3a14a32022-09-19 15:15:39 -040024
25 - repo: https://github.com/psf/black
26 rev: 22.8.0
27 hooks:
28 - id: black
29
Mohammed Naser05ad9212022-09-19 16:46:29 -040030 - repo: https://github.com/pycqa/flake8
31 rev: 5.0.4
32 hooks:
33 - id: flake8
34
Mohammed Naserf3a14a32022-09-19 15:15:39 -040035 - repo: https://github.com/pycqa/isort
okozachenko120352987402023-01-31 00:27:49 +110036 rev: 5.12.0
Mohammed Naserf3a14a32022-09-19 15:15:39 -040037 hooks:
38 - id: isort
39
Mohammed Naser26dfd192022-11-02 14:56:22 -040040 - repo: https://github.com/igorshubovych/markdownlint-cli
41 rev: v0.32.2
Mohammed Naserf3a14a32022-09-19 15:15:39 -040042 hooks:
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040043 - id: markdownlint
Mohammed Naser26dfd192022-11-02 14:56:22 -040044 args: ["--ignore=CHANGELOG.md"]