blob: ac3d06c0d96813dc429d2e37079d8414c42fd159 [file] [log] [blame]
Mohammed Naser7d3c7972022-11-07 10:54:56 -05001exclude: '^atmosphere/jsonnet/vendor'
2
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
9
Mohammed Naserc3115c22022-08-30 18:52:23 -040010 - repo: https://github.com/compilerla/conventional-pre-commit
11 rev: v2.0.0
12 hooks:
13 - id: conventional-pre-commit
Mohammed Naserf3a14a32022-09-19 15:15:39 -040014 stages:
Mohammed Naser6bf65352022-09-19 16:40:06 -040015 - commit-msg
16
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040017 - repo: https://github.com/ansible/ansible-lint
18 rev: v6.8.6
Mohammed Naser6bf65352022-09-19 16:40:06 -040019 hooks:
20 - id: ansible-lint
21 files: \.(yaml|yml)$
Mohammed Naserf3a14a32022-09-19 15:15:39 -040022
23 - repo: https://github.com/psf/black
24 rev: 22.8.0
25 hooks:
26 - id: black
27
Mohammed Naser05ad9212022-09-19 16:46:29 -040028 - repo: https://github.com/pycqa/flake8
29 rev: 5.0.4
30 hooks:
31 - id: flake8
32
Mohammed Naserf3a14a32022-09-19 15:15:39 -040033 - repo: https://github.com/pycqa/isort
34 rev: 5.10.1
35 hooks:
36 - id: isort
37
Mohammed Naser7d3c7972022-11-07 10:54:56 -050038 - repo: https://github.com/google/go-jsonnet
39 rev: v0.18.0
40 hooks:
41 - id: jsonnet-format
42 files: atmosphere/jsonnet/\w\.(jsonnet|libsonnet)$
43 - id: jsonnet-lint
44 files: atmosphere/jsonnet/\w\.(jsonnet|libsonnet)$
45
Mohammed Naser26dfd192022-11-02 14:56:22 -040046 - repo: https://github.com/igorshubovych/markdownlint-cli
47 rev: v0.32.2
Mohammed Naserf3a14a32022-09-19 15:15:39 -040048 hooks:
Mohammed Naser4b24d9b2022-11-02 13:14:52 -040049 - id: markdownlint
Mohammed Naser26dfd192022-11-02 14:56:22 -040050 args: ["--ignore=CHANGELOG.md"]