-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (53 loc) · 1.53 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
56 lines (53 loc) · 1.53 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
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
# See https://pre-commit.com for more information
default_stages: [pre-push] # only run on push
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
# See https://pre-commit.com/hooks.html for more hooks
hooks:
# id: end-of-file-fixer
- id: forbid-new-submodules
- id: check-merge-conflict
- id: check-added-large-files
- id: check-symlinks
- id: check-executables-have-shebangs
- id: check-json
exclude: ^tsconfig\.json$
- id: check-toml
- id: check-xml
- id: check-yaml
exclude: ^doc/mkdocs\.yml$
- id: trailing-whitespace
exclude: ^trkn/[^/]*/
- repo: local
hooks:
- id: check-copyright
name: Check Copyright Attribution
entry: misc/check-copyright.sh
language: system
args: [doc/copyright, trkn/copyright]
pass_filenames: false
- id: check-unfinished-work
name: Check Unfinished Work
entry: misc/check-unfinished.sh
language: system
types: [file] # Run for all file types
pass_filenames: true
exclude: |
(?x)^(
ase/atquit\.cc|
doc/style/doxyextra\.css|
ui/b/piano-ctrl\.js|
ui/b/preferencesdialog\.js|
ui/b/shell\.jsx|ui/b/shell\.tsx|
ui/extra-css\.ts|
ui/vite\.config\.ts|
)$
- id: check-emails
name: Check Author Email Whitelist
entry: misc/check-emails.sh
language: system
pass_filenames: false
# Should always pass:
# uvx pre-commit run --hook-stage pre-push --all-files