-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
88 lines (85 loc) · 2.77 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
# Common commands:
# pre-commit install
# pre-commit autoupdate
# pre-commit run --all-files stylua
# pre-commit run --all-files --hook-stage commit
# pre-commit run --all-files --hook-stage push
#
# See https://pre-commit.com for more information
# and https://pre-commit.com/hooks.html for more hooks
# Only commit is installed by default: https://pre-commit.com/#pre-commit-install
# Pending rename of pre-push from: https://github.com/pre-commit/pre-commit/issues/2732
default_install_hook_types: ["commit-msg", "pre-commit", "pre-push"]
exclude: LICENSE\.md
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: [--remove]
- id: forbid-new-submodules
- id: mixed-line-ending
args: [--fix=auto]
- id: pretty-format-json
args: [--autofix, --indent=4]
- id: trailing-whitespace
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v0.20.0
hooks:
- id: stylua-system
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.27.0
hooks:
- id: commitizen
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
additional_dependencies:
# Note: this version must be the same as the hook revision
- "prettier@4.0.0-alpha.8"
- "prettier-plugin-sh"
types_or: [html, javascript, json, shell, yaml]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
additional_dependencies:
- mdformat-mkdocs[recommended]>=2.0.11
- mdformat-gfm-alerts>=1.0.1
args: [--wrap=no]
exclude: CODE_TAG_SUMMARY\.md
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
args: [--in-place, --all, --trailing-comma-inline-array]
- repo: local
hooks:
- id: selene
name: Selene
description: Lints Lua files using Selene (install with homebrew)
entry: selene
language: system
types: [lua]
- id: tags
description: "Create a `CODE_TAG_SUMMARY.md` with a table for TODO- and FIXME-style code comments"
entry: calcipy-tags tags --doc-sub-dir=.github --filename=CODE_TAG_SUMMARY.md
language: system
name: Tags
pass_filenames: false
require_serial: true