-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (39 loc) · 1.44 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (39 loc) · 1.44 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
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: builtin
hooks:
- id: trailing-whitespace
exclude: '(^sphinx-ui/demo/|\.snap$)'
- id: end-of-file-fixer
exclude: '^sphinx-ui/demo/'
- id: check-yaml
- id: check-json
exclude: 'tsconfig.*\.json$'
- repo: local
hooks:
- id: no-tabs
name: No tabs in source files
language: pygrep
entry: '\t'
types_or: [ts, tsx, javascript, jsx, python, css]
exclude: '(node_modules|sphinx-ui/demo/build)'
- id: documentation-ui-format
name: Biome format (documentation-ui)
language: system
entry: bash -c 'cd documentation-ui && pnpm --config.verify-deps-before-run=false exec biome format --write "${@/#documentation-ui\//}"' --
pass_filenames: true
files: '^documentation-ui/(src|stories)/.*\.(ts|tsx|js|jsx|css|json)$'
- id: documentation-ui-lint
name: Lint (documentation-ui)
language: system
entry: bash -c 'cd documentation-ui && pnpm --config.verify-deps-before-run=false run lint'
pass_filenames: false
files: '^documentation-ui/src/.*\.(ts|tsx|js|jsx)$'
- id: commitlint
name: commitlint
language: system
entry: bash -c 'cd documentation-ui && pnpm --config.verify-deps-before-run=false exec commitlint --edit "$1"' --
stages: [commit-msg]
pass_filenames: true