-
Notifications
You must be signed in to change notification settings - Fork 494
/
Makefile
39 lines (30 loc) · 1.05 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
35
36
37
38
39
.PHONY: quality style test
# Check that source code meets quality standards
quality:
black --check --line-length 119 --target-version py38 .
isort --check-only .
flake8 --max-line-length 119
# Format source code automatically
style:
black --line-length 119 --target-version py38 .
isort .
test:
pytest -sv ./src/
docker:
docker build -t autotrain-advanced:latest .
docker tag autotrain-advanced:latest huggingface/autotrain-advanced:latest
docker push huggingface/autotrain-advanced:latest
api:
docker build -t autotrain-advanced-api:latest -f Dockerfile.api .
docker tag autotrain-advanced-api:latest public.ecr.aws/z4c3o6n6/autotrain-api:latest
docker push public.ecr.aws/z4c3o6n6/autotrain-api:latest
ngc:
docker build -t autotrain-advanced:latest .
docker tag autotrain-advanced:latest nvcr.io/ycymhzotssoi/autotrain-advanced:latest
docker push nvcr.io/ycymhzotssoi/autotrain-advanced:latest
pip:
rm -rf build/
rm -rf dist/
make style && make quality
python setup.py sdist bdist_wheel
twine upload dist/* --verbose --repository autotrain-advanced