1 Star 0 Fork 0

anydev/fastapi-admin

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 748 Bytes
一键复制 编辑 原始数据 按行查看 历史
long2ice 提交于 2021-05-01 20:45 +08:00 . Sync pro
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anydev/fastapi-admin.git
git@gitee.com:anydev/fastapi-admin.git
anydev
fastapi-admin
fastapi-admin
master

搜索帮助