diff --git a/.mise.toml b/.mise.toml index 06b7cae..46bd9e1 100644 --- a/.mise.toml +++ b/.mise.toml @@ -25,8 +25,8 @@ description = "ruff format + ruff check --fix" run = ["uv run ruff format .", "uv run ruff check --fix ."] [tasks.typecheck] -description = "basedpyright lsimons_bot" -run = "uv run basedpyright lsimons_bot" +description = "basedpyright" +run = "uv run basedpyright" [tasks.test] description = "pytest" @@ -48,7 +48,9 @@ depends = ["lint", "typecheck", "test"] description = "Watch GitHub Actions CI for the current branch; exits non-zero on failure" run = """ sleep 5 -run_id=$(gh run list --branch "$(git branch --show-current)" --limit 1 --json databaseId --jq '.[0].databaseId') -if [ -z "$run_id" ]; then echo "No run found for current branch" >&2; exit 1; fi -gh run watch --exit-status "$run_id" +remote_url=$(git remote get-url upstream 2>/dev/null || git remote get-url origin) +repo=$(echo "$remote_url" | sed -E 's|^.*github\\.com[:/]||; s|\\.git$||') +run_id=$(gh run list --repo "$repo" --branch "$(git branch --show-current)" --limit 1 --json databaseId --jq '.[0].databaseId') +if [ -z "$run_id" ]; then echo "No run found for current branch on $repo" >&2; exit 1; fi +gh run watch --repo "$repo" --exit-status "$run_id" """ diff --git a/AGENTS.md b/AGENTS.md index 12c50aa..b18b9d5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,7 +12,7 @@ Python AI bot for Schuberg Philis Slack. - **Blog publisher**: `mise run blog` (wraps `python -m lsimons_bot.blog` in `fnox exec`) - **Format**: `mise run format` (or `uv run ruff format .`) - **Lint**: `mise run lint` (ruff check + format --check) -- **Typecheck**: `mise run typecheck` (basedpyright lsimons_bot) +- **Typecheck**: `mise run typecheck` (basedpyright) - **Test**: `mise run test` (or `uv run pytest`) - **Full CI gate**: `mise run ci` diff --git a/pyproject.toml b/pyproject.toml index e2dc4f0..e44802f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,9 @@ select = ["E", "F", "I", "W", "UP", "B", "SIM"] pythonVersion = "3.14" typeCheckingMode = "strict" reportMissingTypeStubs = false +# Bare `basedpyright` (mise run typecheck) checks the package; tests are out of +# scope. +include = ["lsimons_bot"] [dependency-groups] dev = [