# intervals-ftp-update

default:
    @just --list

# Run the test suite with coverage
test *ARGS:
    uv run pytest {{ARGS}}

# Coverage as a browsable HTML report
coverage:
    uv run pytest --cov-report=html
    @echo "open htmlcov/index.html"

# Show the proposal, then ask before writing
update *ARGS:
    uv run intervals-ftp-update {{ARGS}}

# Show the proposal, never write
check *ARGS:
    uv run intervals-ftp-update --dry-run {{ARGS}}

# Write without asking
apply *ARGS:
    uv run intervals-ftp-update --yes {{ARGS}}

# Build the distribution
build:
    rm -rf dist
    uv build

# Upload to PyPI (CI does this on a tag; this is the manual fallback)
publish: build
    uv publish
