基于多因子 Cobb-Douglas 产量模型的作物种植决策支持应用。
新增文件:
- app.py: Streamlit 主应用,包含产量预测模型、多作物数据库、
雷达图/敏感性分析可视化、作物推荐排行及智能建议面板
- main.py: 入口文件
- pyproject.toml: 项目配置(Python 3.14+,依赖 streamlit/plotly/pandas/numpy)
- Dockerfile: 基于 uv 镜像的容器化部署配置
- justfile: 任务自动化(运行/格式化/检查/清理)
- .gitignore: Python/IDE/缓存忽略规则
31 lines
559 B
Makefile
31 lines
559 B
Makefile
# Justfile for YieldSmart 农业智能决策系统
|
|
# Use `just <command>` to run tasks
|
|
|
|
# Default task: show available commands
|
|
default:
|
|
just --list
|
|
|
|
# Run the Streamlit app
|
|
run:
|
|
uv run streamlit run app.py
|
|
|
|
# Install dependencies
|
|
install:
|
|
uv add streamlit ruff plotly pandas numpy
|
|
|
|
# Format code with ruff
|
|
format:
|
|
uv run ruff format .
|
|
|
|
# Check code with ruff
|
|
check:
|
|
uv run ruff check .
|
|
|
|
# Run all checks and formatting
|
|
lint:
|
|
just format && just check
|
|
|
|
# Clean up cache files
|
|
clean:
|
|
rm -rf __pycache__ .ruff_cache .streamlit_cache
|