.PHONY: help test test-coverage install docker-test black fix-import beautify.DEFAULT: helphelp:@echo "Please use \`make <target>' where <target> is one of"@echo "test"@echo " Run Sanic Unit Tests"@echo "test-coverage"@echo " Run Sanic Unit Tests with Coverage"@echo "install"@echo " Install Sanic"@echo "docker-test"@echo " Run Sanic Unit Tests using Docker"@echo "black"@echo " Analyze and fix linting issues using Black"@echo "fix-import"@echo " Analyze and fix import order using isort"@echo "beautify [sort_imports=1] [include_tests=1]"@echo " Analyze and fix linting issue using black and optionally fix import sort using isort"@echo ""clean:find . ! -path "./.eggs/*" -name "*.pyc" -exec rm {} \;find . ! -path "./.eggs/*" -name "*.pyo" -exec rm {} \;find . ! -path "./.eggs/*" -name ".coverage" -exec rm {} \;rm -rf build/* > /dev/null 2>&1rm -rf dist/* > /dev/null 2>&1test: cleanpython setup.py testtest-coverage: cleanpython setup.py test --pytest-args="--cov sanic --cov-report term --cov-append "install:python setup.py installdocker-test: cleandocker build -t sanic/test-image -f docker/Dockerfile .docker run -t sanic/test-image toxbeautify: blackifdef sort_importsifdef include_tests$(warning It is suggested that you do not run sort import on tests)isort -rc sanic testselse$(info Sorting Imports)isort -rc sanicendifendifblack:black --config ./pyproject.toml sanic testsfix-import: blackisort -rc sanic
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。