forked from AdamOswald/Huggingface-Space
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (25 loc) · 780 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
build-client:
cd frontend && npm install && PUBLIC_DEV_MODE=PROD npm run build && rm -rf ../static && cp -r build/ ../static/
build-dev:
cd frontend && npm install && PUBLIC_DEV_MODE=DEV npm run build-dev && rm -rf ../static && cp -r build/ ../static/
run-front-dev:
cd frontend && npm install && PUBLIC_DEV_MODE=DEV npm run dev
run-dev:
rm -rf .data/ && FLASK_DEBUG=development python app.py
run-prod:
python app.py
build-all: run-prod
.PHONY: quality style test
check_dirs := tests src utils setup.py
quality:
black --check $(check_dirs)
isort --check-only $(check_dirs)
flake8 $(check_dirs)
mypy src
python utils/check_static_imports.py
style:
black $(check_dirs)
isort $(check_dirs)
python utils/check_static_imports.py --update-file
test:
pytest ./tests/