Skip to content

Commit

Permalink
linguacodex.py (#4): LinguaCodexUtilitas class started
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Nov 22, 2021
1 parent 49c4ffe commit 6b257d1
Show file tree
Hide file tree
Showing 5 changed files with 158 additions and 164 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ data/original/terminologies.zip
data/original/tico19-testset.zip
data/original/tico19-testset
!.gitignore
.pylintrc
!README.md
__pycache__
tmp/
Expand Down
23 changes: 23 additions & 0 deletions scripts/_setup-local-machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,29 @@ else
echo 'OK: Gemfile exists'
fi

if [ ! -f '.pylintrc' ]; then
VAR_pylintrc=$(cat << EOF
# pylint --generate-rcfile
[MASTER]
ignore-patterns=tests/
[MESSAGES CONTROL]
disable=W0511, # TODOs
; F0401, # import loading
; W0511, # todos
; E1101, # function members
; R0801, # duplicate code
; R0903, # public methods
; R0915 # too many statements
EOF
)
echo "$VAR_pylintrc" > .pylintrc
else
echo 'OK: .pylintrc exists'
fi

# TODO:
# .vscode/settings.json
# # {
Expand Down
6 changes: 3 additions & 3 deletions scripts/data-external-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ if [ ! -f scripts/data-external/iso15924.txt ]; then
head scripts/data-external/iso15924.txt > scripts/data-external/iso15924.sample.txt
fi

if [ ! -f scripts/data-external/cldf-anguages.csv ]; then
curl https://raw.githubusercontent.com/cldf-datasets/wals/master/cldf/languages.csv --output scripts/data-external/cldf-anguages.csv
head -n 15 scripts/data-external/cldf-anguages.csv > scripts/data-external/cldf-anguages.sample.csv
if [ ! -f scripts/data-external/cldf/languages.csv ]; then
curl https://raw.githubusercontent.com/cldf-datasets/wals/master/cldf/languages.csv --output scripts/data-external/cldf/languages.csv
head -n 15 scripts/data-external/cldf/languages.csv > scripts/data-external/cldf/languages.sample.csv
fi

if [ ! -f scripts/data-external/cldr/likelySubtags.json ]; then
Expand Down
Loading

0 comments on commit 6b257d1

Please sign in to comment.