Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add spellchecking#273

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
rffontenelle wants to merge13 commits intomain
base:main
Choose a base branch
Loading
fromadd_spellcheck
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 56 additions & 0 deletions.github/workflows/check.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -188,3 +188,59 @@ jobs:
- name: Show difference (error if there is any)
run: |
git diff --exit-code --color-words


# Check spelling of PO files
spellcheck:
name: Check spelling of translation files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 5

- name: Set up Python 3
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.version }}
cache: pip
allow-prereleases: true

- name: Make sure the repository is up to date
if: github.event_name != 'pull_request'
run: git pull --rebase

- name: setup
run: ./scripts/setup.sh

- name: Install gettext
run: sudo apt update -y && sudo apt install gettext hunspell hunspell-pt-br -y

- name: Generate template files without literal-block gettext target
working-directory: cpython/Doc
run: |
make build ALLSPHINXOPTS='-E -b gettext -D gettext_compact=0 -D gettext_additional_targets=["index"] -d build/.doctrees . build/gettext'

- name: Update translation files
working-directory: cpython/Doc/locales/pt_BR/LC_MESSAGES
run: |
for po in $(git ls-files *.po); do
pot="../../../build/gettext/${po}t"
msgmerge --update --backup=off $po $pot
done

# Run a per-directory, group-separated spellcheck
- name: Check spelling
continue-on-error: true
run: |
check_spell=$PWD/scripts/check_spell.py
langdir=$PWD/cpython/Doc/locales/pt_BR/LC_MESSAGES
cd $langdir
dirs=". $(find * -type d | sort)"
for dir in $dirs; do
echo "::group::{$dir}"
cd $langdir/$dir
po_files=$(find -maxdepth 1 -name '*.po' | sort)
python $check_spell $po_files || :
echo "::endgroup::"
done
37 changes: 37 additions & 0 deletionsdictionaries/2.4.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
ImmutableSet
Wilson
FutureWarning
Kalle
Moshe
Zadka
iterator
Jewett
Skip
Reifschneider
Hettinger
Svensson
Hye-Shik
Chang
Unsupported
format
character
Montanaro
Russell
iterador
Åstrand
Frederik
Lundh
rounding
Rexx
Dorfman
atof
ptr
Reis
Carneiro
hashable
Rigo
pystone
reversed
subprocess
exc

Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp