Skip to content
This repository was archived by the owner on Aug 9, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
"""
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down