fix: preprocess AST spans before modularization
This commit is contained in:
@@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- tools/apply_full_safe_modularization.py
|
- tools/apply_full_safe_modularization.py
|
||||||
|
- tools/fix_modularization_ast_spans.py
|
||||||
- .github/workflows/temp-full-safe-modularization.yml
|
- .github/workflows/temp-full-safe-modularization.yml
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -23,6 +24,8 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
|
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
|
||||||
python -m pip install filelock
|
python -m pip install filelock
|
||||||
|
- name: Repair AST source spans
|
||||||
|
run: python tools/fix_modularization_ast_spans.py
|
||||||
- name: Apply safe modularization
|
- name: Apply safe modularization
|
||||||
run: python tools/apply_full_safe_modularization.py
|
run: python tools/apply_full_safe_modularization.py
|
||||||
- name: Verify Python syntax
|
- name: Verify Python syntax
|
||||||
@@ -35,6 +38,7 @@ jobs:
|
|||||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git rm -f \
|
git rm -f \
|
||||||
tools/apply_full_safe_modularization.py \
|
tools/apply_full_safe_modularization.py \
|
||||||
|
tools/fix_modularization_ast_spans.py \
|
||||||
tools/build_refactor_inventory.py \
|
tools/build_refactor_inventory.py \
|
||||||
refactor_inventory.json \
|
refactor_inventory.json \
|
||||||
.github/workflows/temp-refactor-inventory.yml \
|
.github/workflows/temp-refactor-inventory.yml \
|
||||||
@@ -42,5 +46,3 @@ jobs:
|
|||||||
git add -A
|
git add -A
|
||||||
git commit -m "refactor: modularize registration runtime safely"
|
git commit -m "refactor: modularize registration runtime safely"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
# trigger: 2026-07-15
|
|
||||||
|
|||||||
Reference in New Issue
Block a user