From af060982cf1cf552e2fff8507ad8037b914b3c24 Mon Sep 17 00:00:00 2001 From: Egor Deev Date: Fri, 2 Oct 2026 13:10:20 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=B8:=20playwright=20=D0=B8=20gunicorn=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=BA=D1=80=D0=B5=D0=BF=D0=BB=D0=B5=D0=BD=D1=8B=20?= =?UTF-8?q?=D0=BF=D0=BE=20=D0=BF=D1=80=D0=BE=D0=B4=D0=B0=D0=BA=D1=88=D0=B5?= =?UTF-8?q?=D0=BD=D1=83,=20dev-=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=B8=20=D0=B8=20=D0=BD=D0=B0=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=B9=D0=BA=D0=B8=20ruff/pytest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 17 +++++++++++++++++ requirements-dev.txt | 3 +++ requirements.txt | 3 ++- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml create mode 100644 requirements-dev.txt diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d761be6 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,17 @@ +[tool.ruff] +target-version = "py311" +line-length = 120 +extend-exclude = ["migrations"] + +[tool.ruff.lint] +select = ["E", "F", "W", "B", "S"] +ignore = [ + "E501", # длинные строки в промптах и шаблонах сообщений + "B904", # raise из except в обработчиках API — осознанно без цепочки +] + +[tool.ruff.lint.per-file-ignores] +"tests/*" = ["S101", "S105", "S106"] + +[tool.pytest.ini_options] +testpaths = ["tests"] diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..b065da0 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,3 @@ +-r requirements.txt +pytest==8.4.2 +ruff==0.14.0 diff --git a/requirements.txt b/requirements.txt index 9dc05bf..7ee3a73 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,5 @@ openai==1.58.1 python-dotenv==1.0.1 Werkzeug==3.1.3 Pillow==11.0.0 -playwright>=1.40 +playwright==1.60.0 +gunicorn==25.3.0