Fix #707 -- Setup automated spell-checking for translations (#896)

This will:
  * set up potypo
  * add wordlists, edgecases and phrases
  * fix english typos across the codebase
  * fix german typos and translation
This commit is contained in:
Jakob Schnell
2018-05-27 11:59:10 +02:00
committed by Raphael Michel
parent 4d249553bf
commit 1689925508
19 changed files with 415 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ if [ "$1" == "doctests" ]; then
cd doc
make doctest
fi
if [ "$1" == "spelling" ]; then
if [ "$1" == "doc-spelling" ]; then
XDG_CACHE_HOME=/cache pip3 install -Ur doc/requirements.txt
cd doc
make spelling
@@ -33,6 +33,11 @@ if [ "$1" == "spelling" ]; then
exit 1
fi
fi
if [ "$1" == "translation-spelling" ]; then
XDG_CACHE_HOME=/cache pip3 install -Ur src/requirements/dev.txt
cd src
potypo
fi
if [ "$1" == "tests" ]; then
pip3 install -r src/requirements.txt -Ur src/requirements/dev.txt -r src/requirements/py34.txt
cd src