# Justfile for pest-image-search 病虫害以图搜图
# 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 requests pillow numpy torch transformers

# 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
