try ast-grep (#24149)

This commit is contained in:
Asuka Minato 2025-08-19 14:41:52 +09:00 committed by GitHub
commit 70da81d0e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 35 additions and 32 deletions

View file

@ -23,6 +23,9 @@ jobs:
uv run ruff check --fix-only .
# Format code
uv run ruff format .
- name: ast-grep
run: |
uvx --from ast-grep-cli sg --pattern 'db.session.query($WHATEVER).filter($HERE)' --rewrite 'db.session.query($WHATEVER).where($HERE)' -l py --update-all
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27