scratch: code-review-tea smoke test (do not merge) #9

Closed
alee wants to merge 1 commits from scratch/code-review-tea-smoke into main
Owner

Throwaway PR to verify the code-review-tea pipeline end-to-end. Safe to close.

Throwaway PR to verify the code-review-tea pipeline end-to-end. Safe to close.
alee added 1 commit 2026-06-27 18:14:18 +00:00
alee force-pushed scratch/code-review-tea-smoke from e5e6d6df0e to 4d814e8808 2026-06-27 18:14:18 +00:00 Compare
Author
Owner

Code review

Found 2 issues:

  1. Assignment instead of comparison in if condition (bug: if state = \"armed\": uses single = (assignment) instead of ==; in Python this is a SyntaxError — assignment cannot appear in an if condition, so the module fails to parse/import)

# BUG: assignment instead of comparison (==)
if state = "armed":
return True

  1. Missing type hints on public function (CLAUDE.md says "Type hints on all public functions")

def is_armed(state):
# BUG: assignment instead of comparison (==)
if state = "armed":
return True

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

### Code review Found 2 issues: 1. Assignment instead of comparison in `if` condition (bug: `if state = \"armed\":` uses single `=` (assignment) instead of `==`; in Python this is a SyntaxError — assignment cannot appear in an `if` condition, so the module fails to parse/import) https://git.adlee.work/alee/vigilar/src/commit/4d814e88081cb05997fccac830006077565cf02f/vigilar/_scratch_review.py#L5-L7 2. Missing type hints on public function (CLAUDE.md says "Type hints on all public functions") https://git.adlee.work/alee/vigilar/src/commit/4d814e88081cb05997fccac830006077565cf02f/vigilar/_scratch_review.py#L3-L7 🤖 Generated with [Claude Code](https://claude.ai/code) <sub>- If this code review was useful, please react with 👍. Otherwise, react with 👎.</sub>
alee closed this pull request 2026-06-27 18:19:08 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alee/vigilar#9