Skip to content
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

Integracion con padpoes #1785

Open
wants to merge 4 commits into
base: 3.12
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
15 changes: 15 additions & 0 deletions .github/problem-matchers/pospell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"problemMatcher": [
{
"owner": "pospell",
"pattern": [
{
"regexp": "^(.*):(\\d+):(.*)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
]
}
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
id: changed_files
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Preparar Python v3.11
uses: actions/setup-python@v2
with:
Expand All @@ -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'
Expand Down
5 changes: 2 additions & 3 deletions library/functools.po
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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 ""
Expand Down Expand Up @@ -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 "
Expand Down
2 changes: 1 addition & 1 deletion library/venv.po
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ msgstr ""
"virtual-environments/#creating-a-virtual-environment>`__"

msgid ":ref:`Availability <availability>`: not Emscripten, not WASI."
msgstr ""
msgstr ":ref:`Disponibilidad <availability>`: no Emscripten, no WASI."

#: ../Doc/library/cpython/Doc/includes/wasm-notavail.rst:5
msgid ""
Expand Down
Empty file added padpoes.ignore
Empty file.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ sphinx-autorun
sphinxemoji
sphinx-tabs
tabulate
padpoes