Skip to content

Add code formatting and type checking with Black, isort, and mypy#20

Merged
gutosantos82 merged 4 commits into
awslabs:mainfrom
gutosantos82:add-q-cli-tests-format
Nov 3, 2025
Merged

Add code formatting and type checking with Black, isort, and mypy#20
gutosantos82 merged 4 commits into
awslabs:mainfrom
gutosantos82:add-q-cli-tests-format

Conversation

@gutosantos82

@gutosantos82 gutosantos82 commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

Overview

This PR introduces consistent code formatting and static type checking across the entire codebase.

Changes

  • Code Formatting: Applied Black and isort formatters to all Python files for consistent code style
  • Type Checking: Added mypy configuration and resolved all type checking issues
  • Configuration: Added mypy.ini with project-specific type checking rules

Files Changed

  • 37 files modified
  • 898 insertions(+), 731 deletions(-)

Affected Areas

  • Source code modules (API, CLI, clients, providers, services, utils, MCP server)
  • Test files and fixtures
  • Configuration files

Commits

  1. Format with black
  2. Format with isort
  3. Fix mypy checks
  4. Fixes after typecheck

Benefits

  • ✅ Consistent code style across the project
  • ✅ Better code maintainability
  • ✅ Improved type safety
  • ✅ Easier code reviews
  • ✅ Reduced potential runtime errors through static analysis

Testing

All existing tests pass with the formatting and type checking changes applied.

@gutosantos82 gutosantos82 changed the title Format repo with black Format repo with black, isort, mypy Nov 3, 2025

@anilkmr-a2z anilkmr-a2z left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend adding some more details to the commit messages. Otherwise it may not make much after sometime.

@gutosantos82 gutosantos82 changed the title Format repo with black, isort, mypy Add code formatting and type checking with Black, isort, and mypy Nov 3, 2025
@gutosantos82

Copy link
Copy Markdown
Contributor Author

I would recommend adding some more details to the commit messages. Otherwise it may not make much after sometime.

@anilkmr-a2z Let me know if that is better. Thanks for the feedback

@gutosantos82 gutosantos82 merged commit 0b9ddac into awslabs:main Nov 3, 2025
5 checks passed
@gutosantos82 gutosantos82 deleted the add-q-cli-tests-format branch November 3, 2025 21:34
haofeif added a commit that referenced this pull request Apr 4, 2026
…dation, and README docs

- Rename lessons-learned.md to lessons-learnt.md
- Add 7 new lessons (#14-#20): shell warm-up, TERM compatibility, alt-screen
  vs scrollback, startup prompt loop, stale permission detection, per-directory
  locks, assign+handoff e2e validation
- Add docs/tool-restrictions.md as essential reading reference
- Add assign+handoff orchestration step (Step 9) to SKILL.md with
  troubleshooting guide referencing examples/assign/
- Add alt-screen vs scrollback to "Before You Start" checklist
- Expand Step 6 with cross-references to lessons #14, #15, #17
- Fix stale lessons-learned.md reference in provider-template.md
- Add Skills section to README with tool compatibility table (Claude Code,
  Kiro CLI, Gemini CLI, Strands Agents SDK, Microsoft Agent Framework, etc.)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
haofeif added a commit that referenced this pull request Apr 4, 2026
The launch commands in lesson #20 and SKILL.md Step 9 were missing
--provider (defaults to kiro_cli otherwise) and --auto-approve/--yolo
flags needed for new provider testing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
haofeif added a commit that referenced this pull request Apr 4, 2026
…ss criteria

Detail each test across 5 suites (handoff, assign, send_message,
allowed_tools, supervisor_orchestration) with what it validates and
why it matters. Emphasize that all 11 must pass — a supervisor that
silently does workers' jobs or ignores tool restrictions is only
caught by the full suite.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fanhongy pushed a commit that referenced this pull request Apr 7, 2026
* feat: add cao-provider skill for scaffolding new CLI agent providers

Comprehensive skill with annotated template, 10 lessons learned from
building 7 providers, test guide, and step-by-step implementation checklist.
Placed in skills/ (not .claude/) so it's tool-agnostic for any AI assistant.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(skill): enhance cao-provider skill with lessons learnt, e2e validation, and README docs

- Rename lessons-learned.md to lessons-learnt.md
- Add 7 new lessons (#14-#20): shell warm-up, TERM compatibility, alt-screen
  vs scrollback, startup prompt loop, stale permission detection, per-directory
  locks, assign+handoff e2e validation
- Add docs/tool-restrictions.md as essential reading reference
- Add assign+handoff orchestration step (Step 9) to SKILL.md with
  troubleshooting guide referencing examples/assign/
- Add alt-screen vs scrollback to "Before You Start" checklist
- Expand Step 6 with cross-references to lessons #14, #15, #17
- Fix stale lessons-learned.md reference in provider-template.md
- Add Skills section to README with tool compatibility table (Claude Code,
  Kiro CLI, Gemini CLI, Strands Agents SDK, Microsoft Agent Framework, etc.)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(skill): add --provider and --auto-approve to assign e2e examples

The launch commands in lesson #20 and SKILL.md Step 9 were missing
--provider (defaults to kiro_cli otherwise) and --auto-approve/--yolo
flags needed for new provider testing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs(skill): expand lesson #20 with all 11 e2e tests as minimum success criteria

Detail each test across 5 suites (handoff, assign, send_message,
allowed_tools, supervisor_orchestration) with what it validates and
why it matters. Emphasize that all 11 must pass — a supervisor that
silently does workers' jobs or ignores tool restrictions is only
caught by the full suite.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants