-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
31 lines (31 loc) · 977 Bytes
/
.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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
# Forces notebook outputs to be empty before commit
- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
hooks:
- id: nbstripout
stages: [pre-commit]
types: [jupyter]
- repo: local
hooks:
- id: cargo-test
name: cargo test
language: system
entry: bash -c "cd wasm_realtime_sws/ && cargo test"
pass_filenames: false
types: [rust]
stages: [pre-commit] # Don't run on pre-push
- id: npm-run-build
name: npm run build
language: system
entry: bash -c "cd frontend/ && npm run build"
pass_filenames: false
files: frontend/.*
stages: [pre-commit] # Don't run on pre-push