hongbo-miao/hongbomiao.com

View on GitHub
data-orchestration/hm-prefect/workflows/calculate/pyproject.toml

Summary

Maintainability
Test Coverage
[tool.poetry]
package-mode = false

[tool.poetry.dependencies]
python = "3.11.x"
prefect = "2.20.9"
pydantic = "2.8.2"

[tool.poetry.group.dev.dependencies]
poethepoet = "0.29.0"
pytest = "8.3.3"
pytest-cov = "5.0.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poe.tasks]
prefect-server-start = "prefect server start"
prefect-agent-start = "prefect agent start"
prefect-profile-use = "prefect profile use"

set-up = "python tools/set_up/main.py"
dev = "python src/main.py"
test = "pytest --verbose --verbose"
test-coverage = "pytest --cov=. --cov-report=xml"
build = "prefect deployment build src/main.py:calculate --name=calculate --infra-block=kubernetes-job/calculate-kubernetes-job-block --apply"
run = "prefect deployment run calculate/calculate"