generated from github-education-resources/codespaces-teaching-template-py
-
Notifications
You must be signed in to change notification settings - Fork 159
/
Makefile
30 lines (23 loc) · 793 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
install:
pip install --upgrade pip &&\
pip install -r requirements.txt
#force install latest whisper
pip install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.git
test:
python -m pytest -vv --cov=main --cov=mylib test_*.py
format:
black *.py hugging-face/zero_shot_classification.py hugging-face/hf_whisper.py
lint:
pylint --disable=R,C --ignore-patterns=test_.*?py *.py mylib/*.py\
hugging-face/zero_shot_classification.py hugging-face/hf_whisper.py
container-lint:
docker run --rm -i hadolint/hadolint < Dockerfile
checkgpu:
echo "Checking GPU for PyTorch"
python utils/verify_pytorch.py
echo "Checking GPU for Tensorflow"
python utils/verify_tf.py
refactor: format lint
deploy:
#deploy goes here
all: install lint test format deploy