代码拉取完成,页面将自动刷新
.PHONY: help clean clean-pyc clean-build list test test-all coverage docs release sdist
help:
@echo "clean - remove build artifacts"
@echo "develop - set up dev environment"
@echo "install-deps"
@echo "install-pre-commit"
@echo "setup-git"
@echo "lint - check style with flake8"
@echo "test - run tests quickly with the default Python"
clean:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
develop: setup-git install-deps install-pre-commit
install-deps:
pip install -r requirements/requirements.txt
pip install -r requirements/test-requirements.txt
install-pre-commit:
pip install "pre-commit>=1.10.1,<1.11.0"
setup-git: install-pre-commit
pre-commit install
git config branch.autosetuprebase always
lint: install-pre-commit
@echo "Linting Python files"
pre-commit run -a
@echo ""
test: develop lint
@echo "Running Python tests"
py.test .
@echo ""
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。