forked from Tatsh/kate-wakatime
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
92 lines (92 loc) · 2.89 KB
/
.pre-commit-config.yaml
File metadata and controls
92 lines (92 loc) · 2.89 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
default_install_hook_types:
- 'pre-commit'
- 'pre-push'
- 'post-checkout'
- 'post-merge'
repos:
- hooks:
- exclude: "yarn-\\d+.*\\.cjs$"
id: 'check-added-large-files'
- id: 'check-ast'
- id: 'check-builtin-literals'
- id: 'check-case-conflict'
- id: 'check-executables-have-shebangs'
- id: 'check-merge-conflict'
- id: 'check-shebang-scripts-are-executable'
- id: 'check-symlinks'
- id: 'check-toml'
- id: 'debug-statements'
- id: 'destroyed-symlinks'
- id: 'detect-aws-credentials'
- id: 'detect-private-key'
- id: 'end-of-file-fixer'
- files: "^(\\.(docker|eslint|prettier)ignore|CODEOWNERS|\\.gitattributes)$"
id: 'file-contents-sorter'
- id: 'fix-byte-order-marker'
- id: 'mixed-line-ending'
repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: 'v5.0.0'
- hooks:
- id: 'clang-format'
types_or:
- 'c'
- 'c++'
repo: 'https://github.com/pre-commit/mirrors-clang-format'
rev: 'v20.1.6'
- hooks:
- id: 'check-github-actions'
- id: 'check-github-workflows'
- args:
- '--schemafile'
- 'https://json.schemastore.org/package.json'
files: "^package\\.json$"
id: 'check-jsonschema'
name: 'validate package.json'
repo: 'https://github.com/python-jsonschema/check-jsonschema'
rev: '0.33.0'
- hooks:
- id: 'validate-cff'
repo: 'https://github.com/citation-file-format/cffconvert'
rev: 'b6045d7'
- hooks:
- entry: 'yarn install --check-cache --immutable'
files: "^package\\.json$"
id: 'yarn-check-lock'
language: 'system'
name: 'check yarn.lock is up-to-date'
pass_filenames: false
- always_run: true
entry: 'yarn install'
id: 'yarn-install'
language: 'system'
name: 'ensure Node packages are installed for this branch'
pass_filenames: false
stages:
- 'post-checkout'
- 'post-merge'
- entry: 'yarn prettier -w'
exclude: '((requirements|robots).txt|Dockerfile.*|..*ignore|.(coveragerc|gitattributes)|.*.(csv|lock|resource|robot)|CODEOWNERS|py.typed)$'
exclude_types:
- 'binary'
- 'dockerfile'
- 'pyi'
- 'python'
- 'rst'
- 'plain-text'
- 'shell'
id: 'fix-formatting-prettier'
language: 'system'
name: 'check files are formatted with Prettier'
- entry: "yarn markdownlint-cli2 --fix '#node_modules'"
id: 'fix-formatting-markdown'
language: 'system'
name: 'check Markdown files are formatted'
types_or:
- 'markdown'
- entry: 'yarn check-spelling --no-must-find-files --no-summary'
id: 'cspell'
language: 'node'
name: 'check spelling'
types:
- 'text'
repo: 'local'