From 7af8295a7c99b1824c96f1a07f6cef1e1e64b4d7 Mon Sep 17 00:00:00 2001 From: Dmitrii Iniutin Date: Sun, 27 Oct 2024 01:41:16 +0100 Subject: [PATCH 1/2] Update ci dependencies --- requirements_ci.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements_ci.txt b/requirements_ci.txt index dd2f8e4..0678a54 100644 --- a/requirements_ci.txt +++ b/requirements_ci.txt @@ -1,4 +1,4 @@ -mypy==0.961 -pytest-aiohttp==1.0.4 -pytest==7.1.2 +mypy==1.4.1 # last version that support python 3.7 +pytest-aiohttp==1.0.5 +pytest==7.4.4 # last version that support python 3.7 ruff==0.7.1 From 87c03ed64383710d05350ec0ce2110950fb327ab Mon Sep 17 00:00:00 2001 From: Dmitrii Iniutin Date: Sun, 27 Oct 2024 01:47:24 +0100 Subject: [PATCH 2/2] Encode pytest asyncio setting in pyproject.toml --- .github/workflows/python-package.yml | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 4f76487..d616833 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -37,4 +37,4 @@ jobs: - name: Test with pytest env: PYTHONPATH: . - run: pytest --asyncio-mode=auto + run: pytest diff --git a/pyproject.toml b/pyproject.toml index b9e29d0..5a88535 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,3 +54,6 @@ unfixable = ["FBT002"] "S101", # Use of assert detected "SLF001", # Private member accessed ] + +[tool.pytest.ini_options] +asyncio_mode = "auto"