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

# Publish to PyPI (build first if needed)
publish: build
    uv publish

# Build and install locally for testing
install:
    uv sync

# Run the formatter
run *args:
    uv run qmk-layout-fmt {{args}}

# Bump version (usage: just bump 0.2.0)
bump version:
    sed -i 's/^version = ".*"/version = "{{version}}"/' pyproject.toml
    sed -i 's/^__version__ = ".*"/__version__ = "{{version}}"/' src/qmk_layout_fmt/__init__.py
