fix linting and typechecking github action (#631)

* Sort imports alphabetically in agent loops __init__.py

Fix isort check failure by alphabetically sorting both the import list
and __all__ list to match the expected order.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

* run on all prs

* Fix black formatting issues in responses.py and provider.py

Apply black formatting to fix lint check failures:
- Reformat conditional expression in responses.py for better readability
- Break long assert line in provider.py to comply with line length limits

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

* Fix prettier formatting issues in markdown and TypeScript files

Apply prettier formatting to blog posts, documentation, and CLI code:
- Format blog markdown files for consistent styling
- Format TypeScript CLI source files
- Format documentation MDX files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
r33drichards
2025-12-01 16:31:20 -05:00
committed by GitHub
parent 5cbaf0cae3
commit 7d3d826672
12 changed files with 2997 additions and 2926 deletions

View File

@@ -45,7 +45,9 @@ class CloudProvider(BaseVMProvider):
# Fall back to environment variable if api_key not provided
if api_key is None:
api_key = os.getenv("CUA_API_KEY")
assert api_key, "api_key required for CloudProvider (provide via parameter or CUA_API_KEY environment variable)"
assert (
api_key
), "api_key required for CloudProvider (provide via parameter or CUA_API_KEY environment variable)"
self.api_key = api_key
self.verbose = verbose
self.api_base = (api_base or DEFAULT_API_BASE).rstrip("/")