forked from HazyResearch/manifest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 749 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
dev:
pip install -e .[all]
pip install -e git+https://github.com/microsoft/DeepSpeed.git#egg=deepspeed
pre-commit install
test: dev check
pytest tests
deepspeed:
pip install -e git+https://github.com/microsoft/DeepSpeed.git#egg=deepspeed
format:
isort --atomic manifest/ tests/ web_app/
black manifest/ tests/ web_app/
check:
isort -c manifest/ tests/ web_app/
black manifest/ tests/ web_app/ --check
flake8 manifest/ tests/ web_app/
mypy manifest/ tests/ web_app/
clean:
pip uninstall -y manifest
rm -rf src/manifest.egg-info
rm -rf build/ dist/
prune:
@bash -c "git fetch -p";
@bash -c "for branch in $(git branch -vv | grep ': gone]' | awk '{print $1}'); do git branch -d $branch; done";
.PHONY: dev test clean check prune