Skip to content

Commit 098339f

Browse files
authored
chore: update testing for Python 3.14 and maintenance configurations (#211)
* chore: update testing to include python 3.14 * update project dependencies and configuration
1 parent 9d35a79 commit 098339f

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.github/release-drafter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ categories:
3939
- title: "🔧 Maintenance 🔧"
4040
labels:
4141
- "chore"
42+
collapse-after: 3
4243
- title: "🎓 Code Quality 🎓"
4344
labels:
4445
- "code-quality"
4546
- title: "🔩 Dependency 🔩"
4647
labels:
4748
- "dependencies"
49+
collapse-after: 3
4850

4951
template: |
5052
[![Downloads for this release](https://img.shields.io/github/downloads/firstof9/ha-gasbuddy/$RESOLVED_VERSION/total.svg)](https://github.com/firstof9/ha-gasbuddy/releases/$RESOLVED_VERSION)

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
matrix:
3030
python-version:
3131
- "3.13"
32+
- "3.14"
3233

3334
steps:
3435
- name: 📥 Checkout the repository
@@ -53,7 +54,7 @@ jobs:
5354
- name: 📤 Upload coverage to Codecov
5455
uses: "actions/upload-artifact@v4"
5556
with:
56-
name: coverage-data
57+
name: coverage-data-${{ matrix.python-version }}
5758
path: "coverage.xml"
5859

5960
coverage:
@@ -67,7 +68,8 @@ jobs:
6768
- name: 📥 Download coverage data
6869
uses: actions/download-artifact@v4
6970
with:
70-
name: coverage-data
71+
pattern: coverage-data-*
72+
merge-multiple: true
7173
- name: 📤 Upload coverage report
7274
uses: codecov/codecov-action@v4
7375
env:

custom_components/gasbuddy/config_flow.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ async def validate_url(url: str) -> bool:
5050
return bool(re.match(pattern, url))
5151

5252

53-
async def validate_station(
54-
hass: HomeAssistant, station: int, solver: str | None = None
55-
) -> bool:
53+
async def validate_station(hass: HomeAssistant, station: int, solver: str | None = None) -> bool:
5654
"""Validate statation ID."""
5755
check = await py_gasbuddy.GasBuddy(
5856
solver_url=solver,
@@ -275,7 +273,9 @@ async def async_step_manual(self, user_input=None):
275273
self._errors[CONF_SOLVER] = "invalid_url"
276274
return await self._show_config_manual(user_input)
277275

278-
validate = await validate_station(self.hass, user_input[CONF_STATION_ID], user_input[CONF_SOLVER])
276+
validate = await validate_station(
277+
self.hass, user_input[CONF_STATION_ID], user_input[CONF_SOLVER]
278+
)
279279
if not validate:
280280
self._errors[CONF_STATION_ID] = "station_id"
281281
else:
@@ -435,7 +435,9 @@ async def async_step_reconfigure(self, user_input: dict[str, Any] | None = None)
435435
else:
436436
user_input[CONF_SOLVER] = None
437437

438-
validate = await validate_station(self.hass, user_input[CONF_STATION_ID], user_input[CONF_SOLVER])
438+
validate = await validate_station(
439+
self.hass, user_input[CONF_STATION_ID], user_input[CONF_SOLVER]
440+
)
439441
if not validate:
440442
self._errors[CONF_STATION_ID] = "station_id"
441443

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,12 +617,13 @@ property-decorators = ["propcache.cached_property"]
617617
[tool.tox.gh-actions]
618618
python = """
619619
3.13: py313, lint, mypy
620+
3.14: py314, lint, mypy
620621
"""
621622

622623
[tool.tox]
623624
skipsdist = true
624625
requires = ["tox>=4.19"]
625-
env_list = ["py313", "lint", "mypy"]
626+
env_list = ["py313", "py314", "lint", "mypy"]
626627
skip_missing_interpreters = true
627628

628629
[tool.tox.env_run_base]

0 commit comments

Comments
 (0)