Skip to content

Commit 017f963

Browse files
authored
feat(script): run powrap in sync workflow (#1039)
* chore: upgrade powrap pre-commit hook * feat(script): run powrap in sync workflow
1 parent c3d3dee commit 017f963

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/py313-sync-cpython.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: astral-sh/setup-uv@v6
3535

3636
- name: Sync with CPython
37-
run: make clone && make merge && make rm_cpython
37+
run: make clone merge rm_cpython wrap
3838

3939
- uses: tibdex/github-app-token@v2
4040
id: generate-token

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
repos:
88
- repo: https://git.afpy.org/AFPy/powrap
99
# there's no release tag in repo, use the latest commit hash id instead
10-
rev: a34a9fed116d24562fbe4bb8d456ade85f056c36
10+
rev: v1.0.2
1111
hooks:
1212
- id: powrap

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ rm_cpython: ## Remove cloned cpython repo
156156
lint: $(VENV)/bin/sphinx-lint ## Run sphinx-lint
157157
$(VENV)/bin/sphinx-lint --enable default-role
158158

159+
.PHONY: wrap
160+
wrap: ## Run powrap on modified po files
161+
uvx powrap --modified
162+
159163
# This allows us to accept extra arguments (by doing nothing when we get a job that doesn't match, rather than throwing an error)
160164
%:
161165
@:

0 commit comments

Comments
 (0)