-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
60 lines (55 loc) · 1.51 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
exclude: |
(?x)
(fixtures/)|
(^sphinx/)|
(^docs/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: check-merge-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: v1.26.0
hooks:
- id: typos
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
args: [--keep-id]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
files: ^(skore/(src|tests))|(examples)/
args: [--fix]
- id: ruff-format
files: ^(skore/(src|tests))|(examples)/
- repo: local
hooks:
- id: tsc
language: node
name: Use vue-tsc to typecheck skore-ui code.
entry: bash -c "cd skore-ui && npm run type-check"
files: ^skore-ui/
- id: eslint
language: node
name: Use eslint to lint skore-ui code.
entry: bash -c "cd skore-ui && npm run lint"
files: ^skore-ui/
- id: prettier
language: node
name: Use prettier to format skore-ui code.
entry: bash -c "cd skore-ui && npm run format"
files: ^skore-ui/
- id: stylelint
language: node
name: Use stylelint to lint CSS.
entry: bash -c "cd skore-ui && npm run style-lint"
files: ^skore-ui/