8000 Ejecuta pospell con un comentario en el PR by erickisos · Pull Request #1825 · python/python-docs-es · GitHub
[go: up one dir, main page]

Skip to content

Ejecuta pospell con un comentario en el PR #1825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Chequea orden en TRANSLATORS (#1830)
* Añade nuevo script para ordenar líneas de texto

El ordenamiento se hace usando el colaje de cadenas de texto del locale
actual, y sobre stdin, haciendo la herramienta lo más flexible posible.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

* Agrega paso a CI para chequear orden en TRANSLATORS

Cuando nueva gente se agregue a sí misma a la lista de autores en
TRANSLATORS, este nuevo paso en GitHub actions corroborará que el
archivo TRANSLATORS sigue estando ordenado alfabéticamente, y generará
un error de no ser éste el caso.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
  • Loading branch information
rtobar authored Jul 10, 2022
commit 29d216bb64cd5adde9bf6d78ea55d7a872969a43
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
- name: Instalar dependencias
run: |
sudo apt-get update
sudo apt-get install -y hunspell hunspell-es gettext
sudo apt-get install -y hunspell hunspell-es gettext language-pack-es
python -m pip install -r requirements.txt
pip list
pospell --version
powrap --version
- name: TRANSLATORS
run: |
diff -Naur TRANSLATORS <(LANG=es python scripts/sort.py < TRANSLATORS)
- name: Powrap
run: powrap --check --quiet **/*.po
- name: Pospell
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pip==21.1
Sphinx==3.2.1
blurb
PyICU
polib
pospell>=1.1
potodo
Expand Down
8 changes: 8 additions & 0 deletions scripts/sort.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys

import icu


collator = icu.Collator.createInstance(icu.Locale())
sorted_entries = sorted(sys.stdin, key=collator.getSortKey)
print("".join(sorted_entries), end='')
0