From ff93d2ce0623ef5a4fcb822f0472fa08712bbe62 Mon Sep 17 00:00:00 2001 From: Bruno Geninatti Date: Tue, 21 Dec 2021 16:44:36 -0300 Subject: [PATCH 1/4] add padpoes to requirements --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 1e31e39fa8..489399003d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,3 +14,4 @@ sphinx-autorun sphinxemoji sphinx-tabs tabulate +padpoes From 08ff1491a5281cded59a2d2828797551a4359ff2 Mon Sep 17 00:00:00 2001 From: Bruno Geninatti Date: Tue, 21 Dec 2021 16:44:59 -0300 Subject: [PATCH 2/4] run padpoes in github actions workflow --- .github/workflows/main.yml | 19 +++++++++++++++++++ padpoes.ignore | 0 2 files changed, 19 insertions(+) create mode 100644 padpoes.ignore diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 263220aed4..b685c49c3a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,12 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 + - name: Register problem matchers + run: echo "::add-matcher::.github/problem-matchers/pospell.json" + - uses: lots0logs/gh-action-get-changed-files@2.1.4 + id: changed_files + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Preparar Python v3.11 uses: actions/setup-python@v2 with: @@ -35,6 +41,19 @@ jobs: - name: Pospell run: | python scripts/check_spell.py + - name: Padpoes + env: + ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }} + MODIFIED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.modified), ' ') }} + run: | + CHANGED_PO_FILES=$(printf "%s %s\n" "$ADDED_FILES" "$MODIFIED_FILES" | tr ' ' '\n' | grep '.po$'; true) + if [ -n "$CHANGED_PO_FILES" ] + then + echo "Running on:" $CHANGED_PO_FILES + padpoes -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpoes.ignore + else + echo "No changed po files, nothing to check." + fi - name: Construir documentación run: | # FIXME: Relative paths for includes in 'cpython' diff --git a/padpoes.ignore b/padpoes.ignore new file mode 100644 index 0000000000..e69de29bb2 From c3ada6794838ca1a0214342025caef66c434ae53 Mon Sep 17 00:00:00 2001 From: Bruno Geninatti Date: Tue, 21 Dec 2021 16:45:23 -0300 Subject: [PATCH 3/4] padpoes sample checks --- library/functools.po | 5 ++--- library/venv.po | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/library/functools.po b/library/functools.po index ac0b55afab..a78276b096 100644 --- a/library/functools.po +++ b/library/functools.po @@ -63,7 +63,7 @@ msgid "" "needs to evict old values, this is smaller and faster than :func:" "`lru_cache()` with a size limit." msgstr "" -"Retorna lo mismo que ``lru_cache(maxsize=None)``, creando una envoltura " +"Devuelve lo mismo que ``lru_cache(maxsize=None)``, creando una envoltura " "delgada alrededor de una búsqueda de diccionario para los argumentos de la " "función. Debido a que nunca necesita desalojar los valores antiguos, esto es " "más pequeño y más rápido que :func:`lru_cache()` con un límite de tamaño." @@ -194,8 +194,6 @@ msgstr "" msgid "" "For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`." msgstr "" -"Para ejemplos de clasificación y un breve tutorial de clasificación, ver :" -"ref:`sortinghowto`." #: ../Doc/library/functools.rst:139 msgid "" @@ -231,6 +229,7 @@ msgstr "" "pueden tener dos entradas de caché separadas." #: ../Doc/library/functools.rst:151 +#, fuzzy msgid "" "If *user_function* is specified, it must be a callable. This allows the " "*lru_cache* decorator to be applied directly to a user function, leaving the " diff --git a/library/venv.po b/library/venv.po index 585d5766c9..25afb6ad4d 100644 --- a/library/venv.po +++ b/library/venv.po @@ -69,7 +69,7 @@ msgstr "" "virtual-environments/#creating-a-virtual-environment>`__" msgid ":ref:`Availability `: not Emscripten, not WASI." -msgstr "" +msgstr ":ref:`Disponibilidad `: no Emscripten, no WASI." #: ../Doc/library/cpython/Doc/includes/wasm-notavail.rst:5 msgid "" From 1ad5561d7f22e66c8a74fccad7bf5105cbded88b Mon Sep 17 00:00:00 2001 From: Bruno Geninatti Date: Tue, 21 Dec 2021 20:16:52 -0300 Subject: [PATCH 4/4] Add problem matcher for inline comments --- .github/problem-matchers/pospell.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/problem-matchers/pospell.json diff --git a/.github/problem-matchers/pospell.json b/.github/problem-matchers/pospell.json new file mode 100644 index 0000000000..cedddb008a --- /dev/null +++ b/.github/problem-matchers/pospell.json @@ -0,0 +1,15 @@ +{ + "problemMatcher": [ + { + "owner": "pospell", + "pattern": [ + { + "regexp": "^(.*):(\\d+):(.*)$", + "file": 1, + "line": 2, + "message": 3 + } + ] + } + ] +} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy