Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

1.1 KB
Raw Blame
#!/usr/bin/env bash
#MISE description="Type check Python sources with ty (Astral)"
#USAGE arg "[path]" help="Path to check (default: packages/)"

set -euo pipefail

if [[ -n "${usage_path:-}" ]]; then
    PATHS_TO_CHECK=("${usage_path}")
else
    PATHS_TO_CHECK=(
        packages/sie_config
        packages/sie_mcp
        packages/sie_placement
        packages/sie_sdk
        packages/sie_server
    )
fi

echo "## Running ty type checker on ${PATHS_TO_CHECK[*]}"

# Install every member of the explicitly public workspace for import checking.
# sie-audio-prep is skipped: installing it compiles the native crate (needs
# cmake) and ty cannot see into the binary module anyway.
# `uv run` has no --no-install-package, so sync explicitly first (--inexact
# preserves uv run's keep-extraneous behavior), then run without re-syncing.
mise exec --no-deps [email protected] [email protected] -- uv lock --check --project .
mise exec --no-deps [email protected] [email protected] -- uv sync --project . --all-packages --frozen --inexact --no-install-package sie-audio-prep
mise exec --no-deps [email protected] [email protected] -- uv run --project . --no-sync ty check "${PATHS_TO_CHECK[@]}"