代码拉取完成,页面将自动刷新
checkfiles = aiopathlib/__init__.py tests/test_async.py tests/test_sync.py
black_opts = -l 88 -t py38
.PHONY: lint
.DEFAULT_GOAL := help
help:
@grep '^[a-zA-Z]' $(MAKEFILE_LIST) | sort | awk -F ':.*?## ' 'NF==2 {printf "\033[36m %-25s\033[0m %s\n", $$1, $$2}'
up: ## Update dependencies
poetry update
poetry export --dev --without-hashes > dev_requirements.txt
build: ## Build wheel and zip
rm -fR dist/
poetry build
publish: build
ifeq ($(shell which twine),)
pip install twine --user
endif
twine upload dist/*
lint: ## Reformat with isort and black, then check style with flake8 and mypy
isort $(checkfiles)
black $(black_opts) $(checkfiles)
flake8 $(checkfiles)
mypy $(checkfiles)
check: build ## Checks that build is sane
ifneq ($(shell which black),)
black --check $(black_opts) $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
endif
flake8 $(checkfiles)
mypy $(checkfiles)
bandit -r aiopathlib
twine check dist/*
style: ## Auto-formats the code
autoflake --in-place --remove-all-unused-imports $(checkfiles)
isort -src $(checkfiles)
black $(black_opts) $(checkfiles)
test: ## Test code with pytest and show coverage
coverage run -m pytest
coverage report -m
bump: ## Bump up version
ifeq ($(shell which bumpversion),)
pip install bumpversion
endif
bumpversion patch # major/minor/patch
git log -3
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。