This repository was archived by the owner on Nov 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
114 lines (99 loc) · 4.43 KB
/
.pre-commit-config.yaml
File metadata and controls
114 lines (99 loc) · 4.43 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# Don't run pre-commit on files under any thirdparty/, third_party/, third-party/, etc. sub-folders
# But will run on directories like third/.../../party/, etc.
# exclude: (?i)^(.*third[^/]*party/.*|.*\.ts|.*\.trt)$
exclude: ^three.js/
repos:
- repo: https://github.com/sirosen/check-jsonschema # check-jsonschema is a github actions and workflows verifier.
rev: 0.23.2
hooks:
- id: check-github-actions
- id: check-github-workflows
# - repo: https://github.com/klieret/jekyll-relative-url-check
# rev: v2.0.1
# hooks:
# - id: jekyll-relative-url-check-html
# exclude: (?i)(.*sidebar.*)$
# - id: jekyll-relative-url-check-markdown
# exclude: (?i)(.*sidebar.*)$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
hooks:
- id: prettier
types_or: [html, css, scss, json, javascript]
# exclude: (?i)(.*main.*scss)$
# - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt # pre-commit-hook-yamlfmt is a YAML formatter.
# rev: 0.2.3
# hooks:
# - id: yamlfmt
# - repo: https://github.com/AleksaC/hadolint-py # hadolint is a Dockerfile linter.
# rev: v2.12.0.2
# hooks:
# - id: hadolint
# files: (?i)(.*dockerfile.*)$
# args:
# - -t
# - error
# - repo: https://github.com/scop/pre-commit-shfmt # pre-commit-shfmt formats shell scripts.
# rev: v3.7.0-1
# hooks:
# - id: shfmt
# - repo: https://github.com/shellcheck-py/shellcheck-py # shellcheck-py is a shellcheck wrapper.
# rev: v0.9.0.5
# hooks:
# - id: shellcheck
# args:
# - -e
# - SC1071,SC1091,SC2128,SC2143
# - repo: https://github.com/psf/black # The uncompromising Python code formatter.
# rev: 23.3.0
# hooks:
# - id: black
# - id: black-jupyter
# - repo: https://github.com/pre-commit/mirrors-clang-format # mirrors-clang-format is a clang-format wrapper, it can format json
# rev: v16.0.6
# hooks:
# - id: clang-format
# files: (?i)\.(h|c|hpp|cpp|hxx|cxx|cc)$
# - repo: https://github.com/pocc/pre-commit-hooks # pre-commit-hooks is a collection of additional pre-commit hooks. Using clang-tidy only for now.
# rev: v1.3.5
# hooks:
# - id: clang-tidy
# - repo: https://github.com/cheshirekow/cmake-format-precommit # cmake-format-precommit is a cmake-format wrapper.
# rev: v0.6.13
# hooks:
# - id: cmake-format
- repo: https://github.com/executablebooks/mdformat # mdformat is a markdown formatter.
rev: 0.7.16
hooks:
- id: mdformat
files: (?i)(readme.md)$
- repo: https://github.com/jackdewinter/pymarkdown # pymarkdown is a markdown linter.
rev: v0.9.11
hooks:
- id: pymarkdown
files: (?i)(readme.md)$
args:
- -d
- MD013,MD033
- scan
- repo: https://github.com/pre-commit/pre-commit-hooks # pre-commit-hooks is a collection of additional pre-commit hooks.
rev: v4.4.0
hooks:
# - id: requirements-txt-fixer # fixes requirements.txt and requirements-dev.txt.
# - id: check-added-large-files # prevents giant files from being committed.
# exclude: (?i)(model.*|texture.*|sound.*)$
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystem.
- id: check-merge-conflict # checks for files that contain merge conflict strings.
- id: check-yaml # checks yaml files for parseable syntax.
args:
- --allow-multiple-documents
- --unsafe
- id: check-executables-have-shebangs # ensures that (non-binary) executables have a shebang.
- id: check-shebang-scripts-are-executable # ensures that (non-binary) files with a shebang are executable.
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
- id: fix-byte-order-marker # removes utf-8 byte order marker.
- id: mixed-line-ending # replaces or checks mixed line ending.
- id: trailing-whitespace # trims trailing whitespace.