Wording et utilisation de SRCS
ci/woodpecker/pr/woodpecker Pipeline was successful
Details
ci/woodpecker/pr/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
75170ed783
commit
fbc93b968c
21
Makefile
21
Makefile
|
@ -149,13 +149,13 @@ spell: ensure_test_prerequisites $(DESTS)
|
||||||
|
|
||||||
.PHONY: line-length
|
.PHONY: line-length
|
||||||
line-length:
|
line-length:
|
||||||
@echo "Checking all files using .scripts/line-length.py..."
|
@echo Checking line length...
|
||||||
@python .scripts/line-length.py *.po */*.po
|
@python .scripts/line-length.py $(SRCS)
|
||||||
|
|
||||||
.PHONY: sphinx-lint
|
.PHONY: sphinx-lint
|
||||||
sphinx-lint: ensure_test_prerequisites
|
sphinx-lint: ensure_test_prerequisites
|
||||||
@echo "Checking all files using sphinx-lint..."
|
@echo Checking reStructuredText syntax...
|
||||||
@sphinx-lint --enable all --disable line-too-long *.po */*.po
|
@sphinx-lint --enable all --disable line-too-long $(SRCS)
|
||||||
|
|
||||||
$(POSPELL_TMP_DIR)/%.po.out: %.po dict
|
$(POSPELL_TMP_DIR)/%.po.out: %.po dict
|
||||||
@echo "Pospell checking $<..."
|
@echo "Pospell checking $<..."
|
||||||
|
@ -168,27 +168,28 @@ fuzzy: ensure_test_prerequisites
|
||||||
|
|
||||||
.PHONY: check-headers
|
.PHONY: check-headers
|
||||||
check-headers:
|
check-headers:
|
||||||
@grep -L '^# Copyright (C) [0-9-]*, Python Software Foundation' *.po */*.po | while read -r file;\
|
@echo Checking po headers...
|
||||||
|
@grep -L '^# Copyright (C) [0-9-]*, Python Software Foundation' $(SRCS) | while read -r file;\
|
||||||
do \
|
do \
|
||||||
echo "Please update the po comment in $$file"; \
|
echo "Please update the po comment in $$file"; \
|
||||||
done
|
done
|
||||||
@grep -L '^"Project-Id-Version: Python 3\\n"$$' *.po */*.po | while read -r file;\
|
@grep -L '^"Project-Id-Version: Python 3\\n"$$' $(SRCS) | while read -r file;\
|
||||||
do \
|
do \
|
||||||
echo "Please update the 'Project-Id-Version' header in $$file"; \
|
echo "Please update the 'Project-Id-Version' header in $$file"; \
|
||||||
done
|
done
|
||||||
@grep -L '^"Language: fr\\n"$$' *.po */*.po | while read -r file;\
|
@grep -L '^"Language: fr\\n"$$' $(SRCS) | while read -r file;\
|
||||||
do \
|
do \
|
||||||
echo "Please update the 'Language' header in $$file"; \
|
echo "Please update the 'Language' header in $$file"; \
|
||||||
done
|
done
|
||||||
@grep -L '^"Language-Team: FRENCH <traductions@lists.afpy.org>\\n"' *.po */*.po | while read -r file;\
|
@grep -L '^"Language-Team: FRENCH <traductions@lists.afpy.org>\\n"' $(SRCS) | while read -r file;\
|
||||||
do \
|
do \
|
||||||
echo "Please update the 'Language-Team' header in $$file"; \
|
echo "Please update the 'Language-Team' header in $$file"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
.PHONY: check-colons
|
.PHONY: check-colons
|
||||||
check-colons:
|
check-colons:
|
||||||
@echo "Checking all files using .scripts/check-colon.py..."
|
@echo Checking colons...
|
||||||
@python .scripts/check-colon.py --check *.po */*.po
|
@python .scripts/check-colon.py --check $(SRCS)
|
||||||
|
|
||||||
.PHONY: verifs
|
.PHONY: verifs
|
||||||
verifs: spell line-length check-headers check-colons sphinx-lint
|
verifs: spell line-length check-headers check-colons sphinx-lint
|
||||||
|
|
Loading…
Reference in New Issue