-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmakefile
49 lines (35 loc) · 1012 Bytes
/
makefile
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
.EXPORT_ALL_VARIABLES:
# Install dependencies
install:
cd backend && pip install -r requirements.txt
cd frontend && npm install
# Run the application in development mode
run_backend:
cd backend && uvicorn websrv:app --reload --host 0.0.0.0 --port 3000
run_frontend:
cd frontend && npm run serve
run:
make run_backend & make run_frontend
start:
make run
# Testing
install_test:
pip install coverage pytest pytest-cov
test:
cd backend && pytest --cov-report term --cov=. --cov-report=html -sx
# Code quality
format:
# ----- Formatting Python code with Black
cd backend && black .
# ----- Formatting JavaScript code with Prettier
cd frontend && npm run prettier
check:
# ----- Validating Black code style
cd backend && black --check --diff .
# ----- Validating Flake8 code style
cd backend && flake8 .
# ----- Validating Prettier code style
cd frontend && npm run prettier:check
# ----- Validating CSpell errors
cspell --no-progress .
# ----- The code is formatted correctly