-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
55 lines (53 loc) · 1.69 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
# run on only items staged in git: pre-commit
# automatically run on commit: pre-commit install
# check all files in repo: pre-commit run --all-files
# https://github.com/pre-commit/pre-commit-hooks
repos:
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.12.3
hooks:
- id: check-autopkg-recipe-list
- id: check-autopkg-recipes
# this should technically be com.github.NickETH in the future
args: ["--recipe-prefix=com.github.NickETH."]
- id: forbid-autopkg-overrides
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
# check-json doesn't work with json with comments
# - id: check-json
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
# - id: check-xml
# - id: end-of-file-fixer
# # exclude: "\\.templates/\\.partials/.*"
# # exclude plists:
# exclude: "*.recipe"
- id: requirements-txt-fixer
# - id: trailing-whitespace
- id: detect-private-key
# - id: no-commit-to-branch
# args: [--branch, main]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
args: [-c=.yamllint.yaml]
# - repo: https://github.com/pre-commit/mirrors-isort
# rev: v5.9.3
# hooks:
# - id: isort
# - repo: https://github.com/pycqa/flake8
# rev: 5.0.4
# hooks:
# - id: flake8
# this works with json with comments, but gave me an error
# - repo: https://gitlab.com/bmares/check-json5
# rev: v1.0.0
# hooks:
# - id: check-json5