Update ast-grep pattern for session.query (#24828)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
529791ce62
commit
24e2b72b71
11 changed files with 30 additions and 29 deletions
1
.github/workflows/autofix.yml
vendored
1
.github/workflows/autofix.yml
vendored
|
|
@ -26,6 +26,7 @@ jobs:
|
|||
- 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
|
||||
uvx --from ast-grep-cli sg --pattern 'session.query($WHATEVER).filter($HERE)' --rewrite 'session.query($WHATEVER).where($HERE)' -l py --update-all
|
||||
- name: mdformat
|
||||
run: |
|
||||
uvx mdformat .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue