-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 1.43 KB
/
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
## The Makefile includes instructions on environment setup and lint tests
# Create and activate a virtual environment
# Install dependencies in requirements.txt
# Dockerfile should pass hadolint
# app.py should pass pylint
# (Optional) Build a simple integration test
setup:
python3 -m venv ~/.devops
#source ~/.devops/bin/activate
download_model_data:
wget -P model_data/ https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/resolve/main/config.json
wget -P model_data/ https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/resolve/main/merges.txt
wget -P model_data/ https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/resolve/main/special_tokens_map.json
wget -P model_data/ https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/resolve/main/tokenizer.json
wget -P model_data/ https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/resolve/main/tokenizer_config.json
wget -P model_data/ https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/resolve/main/vocab.json
wget -P model_data/ https://huggingface.co/j-hartmann/emotion-english-distilroberta-base/resolve/main/pytorch_model.bin
install:
pip install --upgrade pip &&\
pip install -r requirements.txt
test:
#python -m pytest -vv --cov=myrepolib tests/*.py
#python -m pytest --nbval notebook.ipynb
lint:
hadolint Dockerfile
pylint --disable=R,C,W1203,W1202 app.py
all: install lint test