-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmakefile
44 lines (31 loc) · 876 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
.EXPORT_ALL_VARIABLES:
# Install dependencies
install:
cd debiaiServer && pip install -r requirements.txt
cd frontend && npm install
# Run the application in development mode
run_debiaiServer:
python run_debiai_server_dev.py
run_frontend:
cd frontend && npm run serve
start:
make run_debiaiServer & make run_frontend
code:
code debiaiServer
code frontend
# Code quality
format:
# ----- Formatting Python code with Black
cd debiaiServer && black .
# ----- Formatting JavaScript code with Prettier
cd frontend && npm run prettier
check:
# ----- Validating Black code style
cd debiaiServer && black --check --diff .
# ----- Validating Flake8 code style
cd debiaiServer && flake8 .
# ----- Validating Prettier code style
cd frontend && npm run prettier:check
# ----- Validating CSpell errors
cspell .
# ----- The code is formatted correctly