# Run the TUI on the test fixture
test:
  revspec tests/fixtures/test-spec.md

# Remove review state files for the test fixture
reset:
  rm -f tests/fixtures/test-spec.md.*

# Run the test suite
pytest *args:
  uv run pytest {{args}}

# Run tests and watch for changes
pytest-watch:
  uv run pytest-watch

# Install in editable mode for local dev
dev:
  uv venv && uv pip install hatchling editables && uv pip install -e . --no-build-isolation

# Build dist packages
build:
  rm -rf dist/
  uv run python -m build

# Publish to PyPI (builds first)
publish: build
  uv run python -m twine upload dist/*

# Show what would be published
check:
  uv run python -m twine check dist/*
