From c363b5478e9daaa385188e360d38ddabecad0d90 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 5 Feb 2024 16:11:21 +0300 Subject: [PATCH] p311 --- .gitea/workflows/main.yml | 2 -- pyproject.toml | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 2550901..4911396 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -11,8 +11,6 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 - with: - python-version: '3.12' - name: Install dependencies run: | diff --git a/pyproject.toml b/pyproject.toml index 3dd7512..933e354 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ description = "notifier server for discours.io" authors = ["discours.io devteam"] [tool.poetry.dependencies] -python = "^3.12" +python = "^3.11" SQLAlchemy = "^2.0.22" psycopg2-binary = "^2.9.9" redis = {extras = ["hiredis"], version = "^5.0.1"} @@ -32,7 +32,7 @@ pytest-asyncio = "^0.23.4" [tool.black] line-length = 120 -target-version = ['py312'] +target-version = ['py311'] include = '\.pyi?$' exclude = ''' @@ -74,7 +74,7 @@ reportMissingImports = false reportMissingModuleSource = "warning" reportImportCycles = "warning" maxMemoryForLargeFile = 4096 -pythonVersion = "3.12" +pythonVersion = "3.11" autoImportCompletions = true useVirtualEnv = true typeCheckingMode = "basic" @@ -91,7 +91,7 @@ typings = {} mergeTypeStubPackages = false [tool.mypy] -python_version = "3.12" +python_version = "3.11" warn_unused_configs = true plugins = ["mypy_sqlalchemy.plugin", "strawberry.ext.mypy_plugin"] @@ -102,7 +102,7 @@ plugins = ["mypy_sqlalchemy.plugin", "strawberry.ext.mypy_plugin"] select = ["E4", "E7", "E9", "F"] ignore = [] line-length = 120 -target-version = "py312" +target-version = "py311"