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 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 diff --git a/aiogram/__init__.py b/aiogram/__init__.py index 2ea9f79f..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() + _uvloop.install() # type: ignore[attr-defined,unused-ignore] F = MagicFilter() flags = FlagGenerator() 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", ]