-
Notifications
You must be signed in to change notification settings - Fork 560
/
.pre-commit-config.yaml
47 lines (47 loc) · 1.35 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
repos:
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
hooks:
- id: blacken-docs
additional_dependencies: [black==21.12b0]
args: ["-l 79"]
exclude: ^docs/theme/|\.rst$
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
args: ["-l 79"]
exclude: ^docs/theme/
- repo: local
hooks:
- id: pylint
name: pylint
language: system
files: \.py$
entry: pylint
args: ["--errors-only"]
exclude: ^(docs/theme/|app/)
- repo: local
hooks:
- id: ipynb-strip
name: ipynb-strip
language: system
files: \.ipynb$
exclude: ^docs/ # *do* commit ipynb outputs in `docs/`
entry: jupyter nbconvert --clear-output --ClearOutputPreprocessor.enabled=True
args: ["--log-level=ERROR"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
exclude: ^docs/theme/
language_version: system
- repo: local
hooks:
- id: frontend-check
name: biome check
entry: npx biome check --apply --files-ignore-unknown=true --no-errors-on-unmatched
language: system
types: [text]
files: "^app\\/packages\\/(app|spotlight)\\/.*\\.(css|html|json|md|ts)$"