@default:
  @just --list

# Run test, lint, check, hatch build
@build: lint check test
  hatch build

# Check formatting
@check:
  hatch fmt --check

# Run lint, check, and test
@checks: lint check test

# Remove dist
@clean:
  rm dist/*
  rmdir dist

# Apply formatting
@format: lint
  hatch fmt

# Lint with hatch
@lint:
  hatch fmt --linter

# Run pytest
@test:
  hatch run test

# Run test matrix
@testmx:
  hatch run test:test

# Run ui.py
@ui:
  hatch run python3 src/pomodorable/ui.py

# Run ui.py with textual --dev
@tui:
  hatch run textual run --dev src/pomodorable/ui.py

# Run 'textual colors' (color preview tool)
@tcol:
  hatch run textual colors

# Take a screenshot using textual --screenshot.
@tss:
  hatch run textual run src/pomodorable/ui.py --screenshot 5

# Redirect help output to temp.txt
@help:
  hatch run pomodorable -h > temp.txt
