From 646943c21e3162c89b2d469ad0b17f6c2a8423e8 Mon Sep 17 00:00:00 2001 From: Egor Deev Date: Fri, 2 Oct 2026 23:36:49 +0000 Subject: [PATCH] =?UTF-8?q?requirements.txt=20=D0=B8=20CI=20(ruff,=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=B0?= =?UTF-8?q?=D0=B7=D1=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ requirements.txt | 6 ++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 requirements.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8b03a4f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.10" + - run: pip install ruff==0.14.0 + - name: Ruff (синтаксис и ошибки) + run: ruff check --select E9,F . + - name: База создаётся из schema.sql + run: | + python -c "import sql; db = sql.SQLighter('/tmp/t.db'); db.add_user('1'); assert db.user_exists('1')" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..441e296 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +aiogram==2.25.2 +pymorphy2==0.9.1 +pymorphy2-dicts-ru==2.4.417127.4579844 +selenium==4.15.2 +beautifulsoup4==4.12.3 +requests==2.31.0