blob: 3cb5d57a3dbc224516618d0524f1b1c80b7a2b8a [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 Naserf3a14a32022-09-19 15:15:39 -040012 - repo: https://github.com/psf/black
Mohammed Nasere4436b42024-04-15 17:57:11 -040013 rev: 24.4.0
Mohammed Naserf3a14a32022-09-19 15:15:39 -040014 hooks:
15 - id: black
16
Mohammed Naser05ad9212022-09-19 16:46:29 -040017 - repo: https://github.com/pycqa/flake8
Mohammed Nasere4436b42024-04-15 17:57:11 -040018 rev: 7.0.0
Mohammed Naser05ad9212022-09-19 16:46:29 -040019 hooks:
20 - id: flake8
21
Mohammed Naserf3a14a32022-09-19 15:15:39 -040022 - repo: https://github.com/pycqa/isort
Mohammed Nasere4436b42024-04-15 17:57:11 -040023 rev: 5.13.2
Mohammed Naserf3a14a32022-09-19 15:15:39 -040024 hooks:
25 - id: isort
Mohammed Naserf3152222024-07-19 00:40:24 -040026 args: ["--profile", "black", "--filter-files"]
27
28 - repo: https://github.com/ansible/ansible-lint.git
29 rev: v24.7.0
30 hooks:
31 - id: ansible-lint