blob: 60a07567dbc4a39362f333a672a8bc50a26760f3 [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 Naserf3a14a32022-09-19 15:15:39 -040019 - repo: https://github.com/psf/black
20 rev: 22.8.0
21 hooks:
22 - id: black
23
Mohammed Naser05ad9212022-09-19 16:46:29 -040024 - repo: https://github.com/pycqa/flake8
25 rev: 5.0.4
26 hooks:
27 - id: flake8
28
Mohammed Naserf3a14a32022-09-19 15:15:39 -040029 - repo: https://github.com/pycqa/isort
okozachenko120352987402023-01-31 00:27:49 +110030 rev: 5.12.0
Mohammed Naserf3a14a32022-09-19 15:15:39 -040031 hooks:
32 - id: isort