代码拉取完成,页面将自动刷新
HOST ?= 0.0.0.0
PORT ?= 8080
TEST_NP ?= 4
run:
uvicorn sandbox.server.server:app --reload --host $(HOST) --port $(PORT)
run-online:
uvicorn sandbox.server.server:app --host $(HOST) --port $(PORT)
build-server-image:
docker build . -f scripts/Dockerfile.server -t sandbox:server
test:
pytest -m "not cuda and not datalake and not dp_eval and not lean" -n $(TEST_NP)
test-cuda:
pytest -m cuda
test-minor:
pytest -m minor
test-verilog:
pytest -m verilog
test-verilog-pdb:
pytest -m verilog --pdb --capture=no
test-online:
ONLINE_TEST=1 pytest
test-case:
pytest -s -vv -k $(CASE)
format:
pycln --config pyproject.toml
isort sandbox/*
yapf -ir sandbox/*
format-client:
mv scripts/client/pyproject.toml scripts/faas/pyproject.toml && yapf -ir scripts/client/* && mv scripts/faas/pyproject.toml scripts/client/pyproject.toml
# mypy --explicit-package-bases sandbox
check:
pycln --config pyproject.toml --check
yapf --diff --recursive sandbox/*
make test
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。