Skip to content

Commit

Permalink
Setup spell checker for localizable file
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
SystemKeeper committed Oct 26, 2023
1 parent afe5028 commit dec211c
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Spellcheck

on:
push:
branches:
- master

pull_request:
paths:
- '.github/workflows/**'
- NextcloudTalk/en.lproj/Localizable.strings

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
spelling:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install pyspelling
# Install any additional libraries required: additional plugins, documentation building libraries, etc.
- name: Install Aspell
run: |
sudo apt-get install aspell aspell-en
- name: Spell check
run: |
python -m pyspelling
12 changes: 12 additions & 0 deletions .pyspelling.wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
AirPlay
Cancelled
HPB
Matterbridge
Nextcloud
Repo
backend
formattedPhoneNumber
https
ld
listable
lu
14 changes: 14 additions & 0 deletions .pyspelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
matrix:
- name: English localizable file
aspell:
lang: en
d: en_US
dictionary:
wordlists:
- .pyspelling.wordlist.txt
pipeline:
- pyspelling.filters.cpp:
line_comments: false
block_comments: false
sources:
- NextcloudTalk/en.lproj/Localizable.strings

0 comments on commit dec211c

Please sign in to comment.