8000 Add checks to Makefile (#642) · python/python-docs-fr@596b7d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 596b7d4

Browse files
christopheNanJulienPalard
authored andcommitted
Add checks to Makefile (#642)
1 parent e6da265 commit 596b7d4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#
55
# - make # Automatically build an html local version
66
# - make todo # To list remaining tasks
7+
# - make verifs # To check for correctness: wrapping, spelling
8+
# - make powrap # To check for wrapping
9+
# - make pospell # To check for spelling
710
# - make merge # To merge pot from upstream
811
# - make fuzzy # To find fuzzy strings
912
# - make progress # To compute current progression
@@ -42,6 +45,7 @@ $(SPHINX_CONF):
4245
.PHONY: upgrade_venv
4346
upgrade_venv:
4447
$(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) venv
48+
$(VENV)/bin/pip install -U potodo powrap pospell
4549

4650

4751
$(VENV)/bin/activate: $(SPHINX_CONF)
@@ -58,10 +62,27 @@ progress:
5862
$(VENV)/bin/potodo: $(VENV)/bin/activate
5963
$(VENV)/bin/pip install potodo
6064

65+
$(VENV)/bin/powrap: $(VENV)/bin/activate
66+
$(VENV)/bin/pip install powrap
67+
68+
$(VENV)/bin/pospell: $(VENV)/bin/activate
69+
$(VENV)/bin/pip install pospell
70+
6171
.PHONY: todo
6272
todo: $(VENV)/bin/potodo
6373
$(VENV)/bin/potodo --github python/python-docs-fr
6474

75+
.PHONY: verifs
76+
verifs: powrap pospell
77+
78+
.PHONY: powrap
79+
powrap: $(VENV)/bin/powrap
80+
$(VENV)/bin/powrap --check --quiet *.po */*.po
81+
82+
.PHONY: pospell
83+
pospell: $(VENV)/bin/pospell
84+
$(VENV)/bin/pospell -p dict -l fr_FR *.po */*.po
85+
6586
.PHONY: merge
6687
merge: upgrade_venv
6788
ifneq "$(shell cd $(CPYTHON_CLONE) 2>/dev/null && git describe --contains --all HEAD)" "$(BRANCH)"

0 commit comments

Comments
 (0)
0