mirror of https://github.com/HazyResearch/manifest
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
621 B
Makefile
31 lines
621 B
Makefile
dev: deepspeed
|
|
pip install -e .[all]
|
|
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/
|
|
black manifest/ tests/
|
|
|
|
check:
|
|
isort -c manifest/ tests/
|
|
black manifest/ tests/ --check
|
|
flake8 manifest/ tests/
|
|
mypy manifest/
|
|
|
|
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
|