mirror of
https://github.com/trycua/computer.git
synced 2026-04-29 03:30:04 -05:00
7d3d826672
* 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>
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
name: Lint & Format Check
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint & Format
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Set up pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.12
|
|
|
|
- name: Install Python dependencies
|
|
run: |
|
|
pip install uv
|
|
uv sync
|
|
|
|
- name: Install Node dependencies
|
|
run: |
|
|
pnpm install --frozen-lockfile
|
|
pnpm -C libs/typescript install --frozen-lockfile
|
|
|
|
# Python checks (isort, black, ruff, mypy)
|
|
- name: Python lint & typecheck
|
|
run: |
|
|
uv run isort --check-only .
|
|
uv run black --check .
|
|
uv run ruff check .
|
|
# Temporarily disabled due to untyped codebase
|
|
# uv run mypy .
|
|
|
|
# TypeScript type check
|
|
- name: TypeScript typecheck
|
|
run: node ./scripts/typescript-typecheck.js
|
|
|
|
# JS/TS/Markdown/YAML checks
|
|
- name: Prettier check
|
|
run: pnpm prettier --check "**/*.{ts,tsx,js,jsx,json,md,yaml,yml}"
|