Skip to content

Commit

Permalink
drop 3.8 from matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Nov 29, 2024
1 parent 0897716 commit d602d27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -37,7 +36,7 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.8,<4"
python = ">=3.9,<4"
websockets = ">=12.0,<14"
aiohttp = "*"
msgpack = "*"
Expand All @@ -56,20 +55,19 @@ 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"]
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]
Expand Down
4 changes: 2 additions & 2 deletions src/pysignalr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d602d27

Please sign in to comment.