Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SriMethan committed Nov 26, 2023
2 parents dda24d5 + c8fc40d commit 0e7e334
Show file tree
Hide file tree
Showing 23 changed files with 402 additions and 108 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Python-CI

on: [pull_request, push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install -r requirements.txt
- name: Lint with flake8
run: |
flake8 server/ --count --show-source --statistics
- name: Run unit tests
run: |
mypy server/
PYTHONPATH=server python tests/test.py
PYTHONPATH=server python tests/test_compress.py
PYTHONPATH=server python tests/test_tournament.py
PYTHONPATH=server python tests/test_disaster.py
PYTHONPATH=server python tests/test_scheduler.py
PYTHONPATH=server python tests/test_corr_janggi_setup.py
2 changes: 1 addition & 1 deletion lang/hu/LC_MESSAGES/client.po
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ msgstr "Játék egy ismerőssel"

#: ../client/lobby.ts:29
msgid "Create a game"
msgstr "Játék létrehozása"
msgstr "Játszma létrehozása"

#: ../client/lobby.ts:116
msgid "Challenge %1 to a game"
Expand Down
6 changes: 3 additions & 3 deletions lang/ko/LC_MESSAGES/client.po
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ msgstr "정말 기권하시겠습니까?"

#: ../client/boardSettings.ts:217
msgid "Confirm correspondence move"
msgstr ""
msgstr "서신 이동 확인"

#: ../client/boardSettings.ts:309
msgid "Zoom"
Expand Down Expand Up @@ -969,7 +969,7 @@ msgstr ""

#: ../client/lobby.ts:419 ../client/lobby.ts:1069
msgid "Correspondence"
msgstr ""
msgstr "서신"

#: ../client/lobby.ts:425
msgid "Minutes per side:"
Expand Down Expand Up @@ -1097,7 +1097,7 @@ msgstr "더 알아보기"

#: ../client/lobby.ts:1138
msgid "Correspondence Chess"
msgstr ""
msgstr "서신 체스"

#: ../client/lobby.ts:1139
msgid "You have time now"
Expand Down
2 changes: 1 addition & 1 deletion lang/ko/LC_MESSAGES/server.po
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ msgstr ""

#: ../server/const.py:397
msgid "Mansindam"
msgstr ""
msgstr "만신담"

#: ../server/videos.py:10
msgid "Howto"
Expand Down
48 changes: 24 additions & 24 deletions lang/pl/LC_MESSAGES/client.po
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ msgstr "Użycie pamięci"

#: ../client/analysisSettings.ts:233
msgid "Use NNUE"
msgstr ""
msgstr "NNUE"

#: ../client/background.ts:9
msgid "Light"
Expand All @@ -286,7 +286,7 @@ msgstr "Potwierdzaj poddanie się"

#: ../client/boardSettings.ts:217
msgid "Confirm correspondence move"
msgstr ""
msgstr "Potwierdzanie ruchów w partiach korespondencyjnych"

#: ../client/boardSettings.ts:309
msgid "Zoom"
Expand Down Expand Up @@ -339,18 +339,18 @@ msgstr "Serwer"
#: ../client/clock.ts:29 ../client/view.ts:120
msgid "%1 day"
msgid_plural "%1 days"
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
msgstr[3] ""
msgstr[0] "%1 doba"
msgstr[1] "%1 dni"
msgstr[2] "%1 dni"
msgstr[3] "%1 dni"

#: ../client/clock.ts:30
msgid "%1 hour"
msgid_plural "%1 hours"
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
msgstr[3] ""
msgstr[0] "%1 godzina"
msgstr[1] "%1 godziny"
msgstr[2] "%1 godzin"
msgstr[3] "%1 godzin"

#: ../client/datetime.ts:20
msgid "in %1 year"
Expand Down Expand Up @@ -1063,15 +1063,15 @@ msgstr "(musisz się zalogować)"

#: ../client/lobby.ts:413
msgid "Time control"
msgstr ""
msgstr "Tempo"

#: ../client/lobby.ts:418
msgid "Real time"
msgstr ""
msgstr "Na żywo "

#: ../client/lobby.ts:419 ../client/lobby.ts:1069
msgid "Correspondence"
msgstr ""
msgstr "Korespondencyjne "

#: ../client/lobby.ts:425
msgid "Minutes per side:"
Expand All @@ -1083,7 +1083,7 @@ msgstr "Okresy"

#: ../client/lobby.ts:449
msgid "Days per turn:"
msgstr ""
msgstr "Dni na ruch"

#: ../client/lobby.ts:467 ../client/lobby.ts:767 ../client/result.ts:16
msgid "Casual"
Expand Down Expand Up @@ -1185,7 +1185,7 @@ msgstr "%1 na posunięciu"

#: ../client/lobby.ts:1068
msgid "Lobby"
msgstr ""
msgstr "Lobby"

#: ../client/lobby.ts:1127
msgid "Donate"
Expand All @@ -1205,31 +1205,31 @@ msgstr "O nas"

#: ../client/lobby.ts:1138
msgid "Correspondence Chess"
msgstr ""
msgstr "Szachy korespondencyjne"

#: ../client/lobby.ts:1139
msgid "You have time now"
msgstr ""
msgstr "Teraz mamy czas"

#: ../client/lobby.ts:1146 ../client/lobby.ts:1147
msgid "S-chess ramblings"
msgstr ""
msgstr "S-szachowe wywody"

#: ../client/lobby.ts:1154
msgid "Autumn Update"
msgstr ""
msgstr "Nowości na jesień"

#: ../client/lobby.ts:1155
msgid "A slew of new variants!"
msgstr ""
msgstr "Kolejna porcja nowych wariantów!"

#: ../client/main.ts:114
msgid "Thank you for your support!"
msgstr "Dziękujemy za wsparcie!"

#: ../client/notifyView.ts:83
msgid "No notifications."
msgstr ""
msgstr "Nie masz żadnych powiadomień "

#: ../client/paste.ts:139
msgid "Invalid PGN"
Expand Down Expand Up @@ -1271,7 +1271,7 @@ msgstr "Rankingowe"
#: ../client/profile.ts:228
msgctxt "UsePluralFormIfNeeded"
msgid "Playing"
msgstr ""
msgstr "W trakcie"

#: ../client/profile.ts:229
msgid "Imported"
Expand Down Expand Up @@ -1501,7 +1501,7 @@ msgstr "Przeciwnik proponuje remis"

#: ../client/roundCtrl.ts:491
msgid "Confirm move"
msgstr ""
msgstr "Potwierdzasz?"

#: ../client/roundCtrl.ts:518
msgid "Are you sure you want to resign?"
Expand Down Expand Up @@ -1566,7 +1566,7 @@ msgstr "ANALIZA"

#: ../client/roundCtrl.ts:839
msgid "Propose takeback"
msgstr ""
msgstr "Cofnij"

#: ../client/roundCtrl.ts:1043
msgid "Stop counting"
Expand Down
2 changes: 1 addition & 1 deletion lang/pl/LC_MESSAGES/server.po
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ msgstr "Trzy szachy 960"

#: ../server/const.py:397
msgid "Mansindam"
msgstr ""
msgstr "Mansindam"

#: ../server/videos.py:10
msgid "Howto"
Expand Down
5 changes: 3 additions & 2 deletions lang/ru/LC_MESSAGES/server.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# Стримы с шахами и матами, 2021
# gbtami <gbtami@gmail.com>, 2022
# Артем Артем, 2023
# a b <kezsulap@gmail.com>, 2023
#
#, fuzzy
msgid ""
Expand All @@ -15,7 +16,7 @@ msgstr ""
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2023-11-17 14:15+0100\n"
"PO-Revision-Date: 2020-05-04 12:19+0000\n"
"Last-Translator: Артем Артем, 2023\n"
"Last-Translator: a b <kezsulap@gmail.com>, 2023\n"
"Language-Team: Russian (https://app.transifex.com/gbtami/teams/14790/ru/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -262,7 +263,7 @@ msgstr "Три шаха 960"

#: ../server/const.py:397
msgid "Mansindam"
msgstr ""
msgstr "Мансиндам"

#: ../server/videos.py:10
msgid "Howto"
Expand Down
2 changes: 1 addition & 1 deletion md2html.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ done

SRC='https://github.com/SriMethan/liantichess/blob/master';
#DST='https://www.pychess.org';
DST='https://cdn.jsdelivr.net/gh/gbtami/pychess-variants\@1.9.71';
DST='https://cdn.jsdelivr.net/gh/gbtami/pychess-variants\@1.9.72';
find . -type f -name "*.html" -exec perl -pi -e s,$SRC,$DST,g '{}' +

mkdir -p ../../templates/docs
Expand Down
9 changes: 5 additions & 4 deletions requirements-win.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
aiohttp-session==2.12.0
aiohttp-remotes==1.2.0
aiohttp-sse==2.1.0
aiohttp==3.8.6
aiohttp==3.9.0
brotli==1.1.0
cryptography==41.0.5
discord.py==2.3.2
dnspython==2.4.2
htmlmin==0.1.12
jinja2==3.1.2
motor==3.3.1
motor==3.3.2
pymongo==4.6.0
pyopenssl==23.3.0
pyffish==0.0.79
Expand All @@ -17,5 +17,6 @@ python-gettext==5.0
objgraph==3.6.0
black==23.11.0
flake8==6.1.0
mypy
pre-commit
mypy1.7.0
mongomock-motor==0.0.21
pre-commit
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
aiohttp-session==2.12.0
aiohttp-remotes==1.2.0
aiohttp-sse==2.1.0
aiohttp==3.8.6
aiohttp==3.9.0
brotli==1.1.0
cryptography==41.0.5
discord.py==2.3.2
dnspython==2.4.2
htmlmin==0.1.12
jinja2==3.1.2
motor==3.3.1
motor==3.3.2
pymongo==4.6.0
pyopenssl==23.3.0
pyffish==0.0.79
Expand All @@ -18,5 +18,6 @@ uvloop==0.19.0
objgraph==3.6.0
black==23.11.0
flake8==6.1.0
mypy
mypy==1.7.0
mongomock-motor==0.0.21
pre-commit
Loading

0 comments on commit 0e7e334

Please sign in to comment.