Skip to content

Commit

Permalink
Python 3.12 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yozik04 committed Apr 18, 2024
1 parent 1039f33 commit 80b7dbe
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -16,26 +16,26 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.15.2
hooks:
- id: pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.4.0
hooks:
- id: black
args:
- --safe
- --quiet

- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
Expand Down
13 changes: 8 additions & 5 deletions paradox/lib/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"ws4py": dict(
mandatory=False, desc="the Pushbullet interface", install_name="ws4py>=0.4.2"
),
"yaml": dict(mandatory=False, desc="the IP150 connection", install_name="pyyaml>=5.2.0"),
"yaml": dict(
mandatory=False, desc="the IP150 connection", install_name="pyyaml>=5.2.0"
),
"chump": dict(
mandatory=False, desc="the Pushover interface", install_name="chump>=1.6.0"
),
Expand All @@ -44,17 +46,18 @@
mandatory=False, desc="the Signal interface", install_name="pygobject>=3.20.0"
),
"gi": dict(mandatory=False, desc="the Signal interface", install_name="gi>=1.2"),
"pytz": dict(mandatory=False, desc="Panel time sync", install_name="pytz>=2023.3.post1"),
"mqtt": dict(mandatory=False, desc="MQTT", install_name="paho_mqtt>=1.5.0"),

"pytz": dict(
mandatory=False, desc="Panel time sync", install_name="pytz>=2023.3.post1"
),
"mqtt": dict(mandatory=False, desc="MQTT", install_name="paho_mqtt>=1.5.0,<2"),
"pre-commit": dict(mandatory=False, desc="Development", install_name="pre-commit"),
"flake8": dict(mandatory=False, desc="Code checker", install_name="flake8"),
"tox": dict(mandatory=False, desc="virtual env / testing", install_name="tox"),
}


def import_error_help(error):
logger.error("Could not import Python3 module '{}': {}\n".format(error.name, error))
logger.error(f"Could not import Python3 module '{error.name}': {error}\n")

if error.name in MODULES:
m = MODULES[error.name]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=46.4.0"]
build-backend = "setuptools.build_meta"

[tool.black]
target-version = ["py38", "py39", "py310", "py311"]
target-version = ["py38", "py39", "py310", "py311", "py312"]
exclude = 'generated'

[tool.isort]
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
license = EPL

[options]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38, py39, py310
envlist = py38, py39, py310, py311, py312
isolated_build = True
skip_missing_interpreters = True

Expand Down

0 comments on commit 80b7dbe

Please sign in to comment.