代码拉取完成,页面将自动刷新
checkfiles = fastapi_admin/ tests/ examples/ conftest.py
black_opts = -l 100 -t py38
py_warn = PYTHONDEVMODE=1
locales = fastapi_admin/locales
up:
@poetry update
deps:
@poetry install --no-root
style: deps
isort -src $(checkfiles)
black $(black_opts) $(checkfiles)
check: deps
black --check $(black_opts) $(checkfiles) || (echo "Please run 'make style' to auto-fix style issues" && false)
flake8 $(checkfiles)
mypy $(checkfiles)
pylint $(checkfiles)
test: deps
$(py_warn) py.test
build: deps
@poetry build
ci: check test
# i18n
extract:
@pybabel extract -F babel.cfg -o $(locales)/messages.pot ./
update:
@pybabel update -d $(locales) -i $(locales)/messages.pot
compile:
@pybabel compile -d $(locales)
babel: extract update
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。