From d602d27905018a504cc98471869c5fa80e464233 Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Fri, 29 Nov 2024 01:44:27 -0300 Subject: [PATCH] drop 3.8 from matrix --- .github/workflows/test.yml | 3 --- pyproject.toml | 8 +++----- src/pysignalr/utils.py | 4 ++-- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af8ecae..1d27cbe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,9 +32,6 @@ jobs: arch: arm64 python-version: '3.12' # Python versions - - os: ubuntu-latest - arch: amd64 - python-version: '3.8' - os: ubuntu-latest arch: amd64 python-version: '3.9' diff --git a/pyproject.toml b/pyproject.toml index ce6e2d9..2f3be9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,6 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -37,7 +36,7 @@ packages = [ ] [tool.poetry.dependencies] -python = ">=3.8,<4" +python = ">=3.9,<4" websockets = ">=12.0,<14" aiohttp = "*" msgpack = "*" @@ -56,12 +55,12 @@ types-requests = "*" [tool.black] line-length = 120 -target-version = ["py38", "py39", "py310", "py311", "py312"] +target-version = ["py39", "py310", "py311", "py312"] skip-string-normalization = true [tool.ruff] line-length = 120 -target-version = "py312" +target-version = "py39" [tool.ruff.lint] extend-select = ["B", "C4", "FA", "G", "I", "PTH", "Q", "RUF", "TCH", "UP"] @@ -69,7 +68,6 @@ flake8-quotes = { inline-quotes = "single", multiline-quotes = "double" } isort = { force-single-line = true, known-first-party = ["pysignalr"] } [tool.mypy] -python_version = "3.12" strict = true [tool.pytest.ini_options] diff --git a/src/pysignalr/utils.py b/src/pysignalr/utils.py index ebf00bf..8631098 100644 --- a/src/pysignalr/utils.py +++ b/src/pysignalr/utils.py @@ -5,8 +5,8 @@ http_schemas = ('http', 'https') websocket_schemas = ('ws', 'wss') -http_to_ws = {k: v for k, v in zip(http_schemas, websocket_schemas, strict=False)} # noqa: C416 -ws_to_http = {k: v for k, v in zip(websocket_schemas, http_schemas, strict=False)} # noqa: C416 +http_to_ws = {k: v for k, v in zip(http_schemas, websocket_schemas)} # noqa: C416 +ws_to_http = {k: v for k, v in zip(websocket_schemas, http_schemas)} # noqa: C416 def replace_scheme(url: str, ws: bool) -> str: