Skip to content

Cleanup obsolete code and add ruff/mypy#9

Merged
edgarpavlovsky merged 3 commits intomainfrom
e/audit-and-cleanup
Jan 22, 2026
Merged

Cleanup obsolete code and add ruff/mypy#9
edgarpavlovsky merged 3 commits intomainfrom
e/audit-and-cleanup

Conversation

@edgarpavlovsky
Copy link
Member

Summary

  • Remove obsolete/duplicate code and documentation
  • Add ruff linting and mypy type checking with CI integration

Changes

Cleanup (commit 1)

  • Remove duplicate .claude-plugin/commands/fireteam.md
  • Remove internal docs/ralph-comparison-audit.md
  • Remove unused SDK hooks (src/hooks.py, tests/test_hooks.py)
  • Update README.md to reflect current CLI-based architecture

Quality Gates (commit 2)

  • Add ruff and mypy to dev dependencies
  • Configure ruff with sensible defaults (E, W, F, I, B, C4, UP rules)
  • Configure mypy in strict mode
  • Fix all lint and type errors
  • Add "Lint & Type Check" CI job

Test plan

  • uv run ruff check src/ tests/ passes
  • uv run mypy src/ passes
  • uv run pytest tests/ passes (88 passed, 1 skipped)
  • CI workflow runs successfully

🤖 Generated with Claude Code

edgarpavlovsky and others added 3 commits January 21, 2026 17:33
- Remove duplicate .claude-plugin/commands/fireteam.md (plugin.json
  points to commands/fireteam.md)
- Remove docs/ralph-comparison-audit.md (internal comparison doc)
- Remove src/hooks.py and tests/test_hooks.py (unused SDK-based hooks
  that were never called - system uses CLI subprocess, not SDK hooks)
- Update README.md:
  - Change "Claude Agent SDK" to "Claude Code CLI"
  - Remove ANTHROPIC_API_KEY requirement (uses Claude Code session)
  - Remove non-existent run_tests parameter from API docs
  - Remove "Quality Hooks" section (deleted SDK hooks)
  - Update project structure to reflect actual file layout

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add ruff and mypy to dev dependencies
- Configure ruff with sensible defaults (E, W, F, I, B, C4, UP rules)
- Configure mypy in strict mode for src/
- Fix all ruff lint errors (import sorting, unused imports/variables)
- Fix all mypy type errors (17 errors across 7 files):
  - Add missing return type annotations
  - Add type parameters to generic types (dict, Match)
  - Fix type narrowing issues in closures
  - Use relative imports in claude_hooks
- Update CI workflow with new "Lint & Type Check" job

All checks now pass:
- ruff check src/ tests/
- mypy src/
- pytest tests/ (88 passed, 1 skipped)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@edgarpavlovsky edgarpavlovsky merged commit 3c1cc9e into main Jan 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant