Skip to content

chore: add backend ast-grep lint checks#273

Open
suyiiyii wants to merge 1 commit into
mainfrom
codex/add-backend-ast-grep-checks
Open

chore: add backend ast-grep lint checks#273
suyiiyii wants to merge 1 commit into
mainfrom
codex/add-backend-ast-grep-checks

Conversation

@suyiiyii

Copy link
Copy Markdown
Owner

Summary

  • add ast-grep to dev dependencies and create repository config for structural Python rules
  • add initial backend API rules plus ast-grep rule tests
  • integrate ast-grep scan into the unified lint script and PR lint workflow

Verification

  • uv run python scripts/lint.py --backend --check-only
  • uv run --with ast-grep-cli ast-grep test --config sgconfig.yml --skip-snapshot-tests
  • uv run --with ast-grep-cli ast-grep scan --config sgconfig.yml --report-style medium --color never .

@vercel

vercel Bot commented Mar 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
autoglm-gui Ready Ready Preview, Comment Mar 14, 2026 1:27pm

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Lint & Format Check Results: ✅ PASSED

What was checked:

  • 🐍 Backend: Ruff linting + formatting + ast-grep structural rules
  • 📱 Frontend: ESLint + Prettier + TypeScript types
  • 🔧 Unified: Custom lint script validation

✅ All checks passed!

Your code follows the project's style guidelines.

Checks performed:

  • Backend Ruff lint ✅
  • Backend Ruff format ✅
  • Backend ast-grep ✅
  • Frontend ESLint ✅
  • Frontend Prettier format ✅
  • Frontend TypeScript types ✅
  • Unified lint script ✅

This is an automated check. For questions, ask in the PR discussion.

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