Skip to content

Commit 4cbd195

Browse files
committed
Revert back to include python 3.11
1 parent aca4bfc commit 4cbd195

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
name: Latest release
55

66
env:
7-
CACHE_VERSION: 8
8-
DEFAULT_PYTHON: "3.12"
7+
CACHE_VERSION: 9
8+
DEFAULT_PYTHON: "3.11"
99

1010
# Only run on merges
1111
on:

.github/workflows/verify.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
name: Latest commit
55

66
env:
7-
CACHE_VERSION: 9
8-
DEFAULT_PYTHON: "3.12"
7+
CACHE_VERSION: 10
8+
DEFAULT_PYTHON: "3.11"
99
PRE_COMMIT_HOME: ~/.cache/pre-commit
1010

1111
on:
@@ -167,7 +167,7 @@ jobs:
167167
needs: commitcheck
168168
strategy:
169169
matrix:
170-
python-version: ["3.12"]
170+
python-version: ["3.12", "3.11"]
171171
steps:
172172
- name: Check out committed code
173173
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
@@ -206,7 +206,7 @@ jobs:
206206
needs: prepare-test-cache
207207
strategy:
208208
matrix:
209-
python-version: ["3.12"]
209+
python-version: ["3.12", "3.11"]
210210

211211
steps:
212212
- name: Check out committed code

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ci:
66

77
default_language_version:
88
# force all unspecified python hooks to run python3
9-
python: python3.12
9+
python: python3.11
1010

1111
repos:
1212
# Run manually in CI skipping the branch checks

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
"Intended Audience :: Developers",
1515
"License :: OSI Approved :: MIT License",
1616
"Operating System :: OS Independent",
17+
"Programming Language :: Python :: 3.11",
1718
"Programming Language :: Python :: 3.12",
1819
"Topic :: Home Automation",
1920
]
@@ -24,7 +25,7 @@ maintainers = [
2425
{ name = "bouwew"},
2526
{ name = "CoMPaTech" }
2627
]
27-
requires-python = ">=3.12.0"
28+
requires-python = ">=3.11.0"
2829
dependencies = [
2930
"aiohttp",
3031
"async_timeout",
@@ -51,7 +52,7 @@ include-package-data = true
5152
include = ["plugwise*"]
5253

5354
[tool.black]
54-
target-version = ["py312"]
55+
target-version = ["py311"]
5556
exclude = 'generated'
5657

5758
[tool.isort]
@@ -187,7 +188,7 @@ norecursedirs = [
187188
]
188189

189190
[tool.mypy]
190-
python_version = "3.12"
191+
python_version = "3.11"
191192
show_error_codes = true
192193
follow_imports = "silent"
193194
ignore_missing_imports = true
@@ -217,7 +218,7 @@ omit= [
217218
]
218219

219220
[tool.ruff]
220-
target-version = "py312"
221+
target-version = "py311"
221222

222223
select = [
223224
"B002", # Python does not support the unary prefix increment

0 commit comments

Comments
 (0)