From c6c838f6899728372404a7bf9f2924de7f1712c9 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 21 Oct 2023 19:31:48 +0300 Subject: [PATCH 1/5] Update ReadTheDocs configuration (#1345) --- .readthedocs.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 41b7a452..b61b3f17 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,13 +1,12 @@ version: 2 -python: - version: "3.8" - install: - - method: pip - path: . - extra_requirements: - - docs - - redis +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + post_install: + - pip install .[docs,redis] sphinx: configuration: docs/conf.py From 0a9bee4bd2210c71132d15c7ade9d696a5a0e5f0 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 21 Oct 2023 21:44:52 +0300 Subject: [PATCH 2/5] Bump dependencies --- pyproject.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1f0ad86c..9553b128 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,7 +64,7 @@ proxy = [ "aiohttp-socks~=0.8.3", ] i18n = [ - "Babel~=2.12.1", + "Babel~=2.13.0", ] cli = [ "aiogram-cli~=1.0.3", @@ -74,7 +74,7 @@ test = [ "pytest-html~=4.0.2", "pytest-asyncio~=0.21.1", "pytest-lazy-fixture~=0.6.3", - "pytest-mock~=3.11.0", + "pytest-mock~=3.12.0", "pytest-mypy~=0.10.3", "pytest-cov~=4.1.0", "pytest-aiohttp~=1.0.5", @@ -97,12 +97,12 @@ docs = [ "sphinxcontrib-towncrier~=0.3.2a0", ] dev = [ - "black~=23.9.1", + "black~=23.10.0", "isort~=5.12.0", - "ruff~=0.0.291", - "mypy~=1.5.1", + "ruff~=0.1.1", + "mypy~=1.6.1", "toml~=0.10.2", - "pre-commit~=3.4.0", + "pre-commit~=3.5.0", "packaging~=23.1", ] From 1cf6ce251b7526f84c68f009a003677bb2e07d81 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 21 Oct 2023 21:48:22 +0300 Subject: [PATCH 3/5] Fixed ruff command --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e5e85147..d238a558 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -74,7 +74,7 @@ jobs: - name: Lint code if: "env.IS_PYPY == 'false'" run: | - ruff --format=github aiogram examples + ruff --output-format=github aiogram examples mypy aiogram black --check --diff aiogram tests From eef277ae65ff15ecfb0ff748058392f1cb409e2e Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 21 Oct 2023 22:04:10 +0300 Subject: [PATCH 4/5] Ignore uvloop attr-defined --- aiogram/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/__init__.py b/aiogram/__init__.py index 2ea9f79f..d267f4ba 100644 --- a/aiogram/__init__.py +++ b/aiogram/__init__.py @@ -16,7 +16,7 @@ from .utils.text_decorations import markdown_decoration as md with suppress(ImportError): import uvloop as _uvloop - _uvloop.install() + _uvloop.install() # type: ignore[attr-defined] F = MagicFilter() flags = FlagGenerator() From 3b21262d34c62e74d5a0fb4eb8457b2fff9330eb Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 21 Oct 2023 22:09:46 +0300 Subject: [PATCH 5/5] Skip unused ignore --- aiogram/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/__init__.py b/aiogram/__init__.py index d267f4ba..31d1b16b 100644 --- a/aiogram/__init__.py +++ b/aiogram/__init__.py @@ -16,7 +16,7 @@ from .utils.text_decorations import markdown_decoration as md with suppress(ImportError): import uvloop as _uvloop - _uvloop.install() # type: ignore[attr-defined] + _uvloop.install() # type: ignore[attr-defined,unused-ignore] F = MagicFilter() flags = FlagGenerator()