Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test with HA-core
name: Test against HA-core (master/released)

env:
CACHE_VERSION: 8
CACHE_VERSION: 10
DEFAULT_PYTHON: "3.12"

on:
Expand All @@ -18,7 +18,7 @@ jobs:
# Prepare default python version environment
ha-core-prepare:
runs-on: ubuntu-latest
name: Setup for HA-core
name: Setup for HA-core (release)
steps:
- name: Check out committed code
uses: actions/checkout@v4.1.7
Expand All @@ -44,18 +44,9 @@ jobs:
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-hacore
${{ env.CACHE_VERSION}}-${{ runner.os }}
${{ env.CACHE_VERSION}}
- name: Create HA-core Python virtual environment
- name: Test through HA-core (master/release)
run: |
scripts/core-testing.sh core_prep
- name: Prepare HA-core Python virtual environment
run: |
scripts/core-testing.sh pip_prep
- name: Test
run: |
scripts/core-testing.sh testing
- name: Quality
run: |
scripts/core-testing.sh quality
GITHUB_ACTIONS="" BRANCH="master" scripts/core-testing.sh

shellcheck:
name: Shellcheck
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ venv
*.swp
*.rej
*.orig
manual_clone_ha
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
args:
- --branch=main
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
name: "Checking pyupgrade"
Expand Down Expand Up @@ -58,11 +58,12 @@ repos:
hooks:
- id: yamllint
name: "Linting yaml"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
- repo: https://github.com/biomejs/pre-commit
rev: v0.4.0
hooks:
- id: prettier
name: "Verifying/updating code with prettier"
- id: biome-lint
additional_dependencies: ["@biomejs/biome@1.8.3"]
name: "Verifying/updating code with biome (improved prettier)"
- repo: https://github.com/cdce8p/python-typing-update
rev: v0.6.0
hooks:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Versions from 0.4x

### Ongoing

- Fix `pre-commit` `prettier` (replace with `biome`)
- Fix python`3.12` compatibility, use of `uv` and improved ha-core handling from `plugwise-beta`
- TODO: running hasfest with `--requirements` takes forever (apparently checking all), skipped it for now

### 0.40.6

- Update backend-library to v0.31.3: fix midnight rollover, by @dirixmjm
Expand Down
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
[project]
name = "plugwise_usb-beta"
version = "0.40.7"
description = "Plugwise USB custom_component (BETA)"
readme = "README.md"
requires-python = ">=3.12"
license = {file = "LICENSE"}
keywords = ["Plugwise", "Switch", "Circle", "Plus"]
authors = [
{ name = "Plugwise device owners"}
]
maintainers = [
{ name = "arnoutd_77" },
{ name = "bouwew"},
{ name = "brefra"},
{ name = "CoMPaTech" },
{ name = "dirixmjm" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python"
]
dependencies = ["homeassistant", "plugwise-usb"]

[project.urls]
"Source Code" = "https://github.com/plugwise/plugwise_usb-beta"
"Bug Reports" = "https://github.com/plugwise/plugwise_usb-beta/issues"
Expand Down
Loading