-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (33 loc) · 1020 Bytes
/
.pre-commit-config.yaml
File metadata and controls
37 lines (33 loc) · 1020 Bytes
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
repos:
- repo: local
hooks:
- id: pytest
name: run pytest for server
entry: bash -c 'python server/app.py & sleep 2 && pytest -v server; kill $!'
language: system
pass_filenames: false
always_run: true
- id: eslint
name: run eslint for client
entry: bash -c 'cd client && npm run lint'
language: system
pass_filenames: false
always_run: true
- id: vitest
name: run vitest for client
entry: bash -c 'cd client && npm run test'
language: system
pass_filenames: false
always_run: true
- id: black
name: run black for server linting
entry: bash -c 'black --line-length 120 server'
language: system
pass_filenames: false
always_run: true
- id: isort
name: run isort for server
entry: bash -c 'isort --profile black server'
language: system
pass_filenames: false
always_run: true