代码拉取完成,页面将自动刷新
# Makefiles are traditionally for building C projects... Or something, IDK. Whatever.
# They're a great drop in for shared script runners, keeping cmd syntax brief.
# Declare a PHONY target, write the sequence of commands it executes, then chain them together.
# In your shell just run `make lint` to just run flake8 with the options listed.
# or run `make precommit` to run the lint target script and if it successfully exits then the test target script.
# List of phony make targets
.PHONY: test, lint, build, precommit, cli, gui
setup:
poetry install
# run flake8 with these params. E251 and E226 are errors about whitespace around operators.
lint:
poetry run flake8 --ignore=E251,E226 --max-line-length=127
test:
poetry run pytest
# lint and test and build the pypi package
build: lint test
poetry build
# Run this. `make precommit`
precommit: lint test
cli:
poetry run tkdesigner ${FIGMA_PROJECT_URL} ${FIGMA_TOKEN} -f
gui:
poetry run python gui/gui.py
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。