Skip to content

Commit 5b7b999

Browse files
Copilotjason810496
andauthored
Refactor code transformation scripts from ast to libcst (#35)
* Initial plan * Refactor AST-based code to use libcst for better code transformation Co-authored-by: jason810496 <[email protected]> * Fix: only wrap call expressions in await, not literals Co-authored-by: jason810496 <[email protected]> * Ask whether to apply change * Apply missing async methods * Correct files for check-sync-async-method-for-queue pre-commit * Add check for operation as well --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jason810496 <[email protected]> Co-authored-by: LIU ZHE YOU <[email protected]>
1 parent 5dd1a04 commit 5b7b999

11 files changed

Lines changed: 1218 additions & 157 deletions

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@ repos:
1313
- id: check-sync-async-method-for-queue
1414
name: Check sync/async method for queue
1515
entry: ./scripts/ci/pre_commit/check_sync_async_method_for_queue.py
16+
files: ^pgmq_sqlalchemy/.*\.py$
17+
language: python
18+
- id: check-sync-async-method-for-operation
19+
name: Check sync/async method for operation
20+
entry: ./scripts/ci/pre_commit/check_sync_async_method_for_operation.py
21+
files: ^pgmq_sqlalchemy/.*\.py$
1622
language: python

0 commit comments

Comments
 (0)