Skip to content

Commit cc01fc5

Browse files
committed
Batch-commit including scripts and workflows
1 parent 2de6906 commit cc01fc5

File tree

5 files changed

+319
-91
lines changed

5 files changed

+319
-91
lines changed

.github/workflows/verify.yml

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

66
env:
7-
CACHE_VERSION: 24
7+
CACHE_VERSION: 25
88
DEFAULT_PYTHON: "3.13"
99
PRE_COMMIT_HOME: ~/.cache/pre-commit
1010

@@ -13,7 +13,7 @@ on:
1313
- cron: "2 4 * * 0" # weekly
1414
workflow_dispatch:
1515
push:
16-
pull_request:
16+
#pull_request:
1717

1818
jobs:
1919
# Prepare default python version environment
@@ -48,8 +48,9 @@ jobs:
4848
pip install virtualenv --upgrade
4949
python -m venv venv
5050
. venv/bin/activate
51-
pip install -U pip setuptools wheel
52-
pip install -r requirements_test.txt -r requirements_commit.txt
51+
pip install uv
52+
uv pip install -U pip setuptools wheel
53+
uv pip install -r requirements_test.txt -r requirements_commit.txt
5354
- name: Restore pre-commit environment from cache
5455
id: cache-precommit
5556
uses: actions/cache@v4
@@ -156,6 +157,11 @@ jobs:
156157
run: |
157158
. venv/bin/activate
158159
pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual pylint
160+
- name: Biome lint
161+
run: |
162+
. venv/bin/activate
163+
mkdir -p ./tmp && curl -sL "https://github.com/biomejs/biome/releases/latest/download/biome-linux-x64" -o ./tmp/biome && chmod +x ./tmp/biome
164+
pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual biome
159165
- name: Lint markdown files
160166
run: |
161167
. venv/bin/activate
@@ -194,11 +200,12 @@ jobs:
194200
run: |
195201
python -m venv venv
196202
. venv/bin/activate
197-
pip install -U pip setuptools wheel
203+
pip install uv
204+
uv pip install -U pip setuptools wheel
198205
#pip install -r requirements_test.txt
199206
# 20220124 Mimic setup_test.sh
200-
pip install --upgrade -r requirements_test.txt -c https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt
201-
pip install --upgrade pytest-asyncio
207+
uv pip install --upgrade -r requirements_test.txt -c https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/package_constraints.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt
208+
uv pip install --upgrade pytest-asyncio
202209
203210
pytest:
204211
runs-on: ubuntu-latest
@@ -274,11 +281,11 @@ jobs:
274281
- name: Run mypy
275282
run: |
276283
. venv/bin/activate
277-
pip list | grep -i mypy
284+
uv pip list | grep -i mypy
278285
#mypy plugwise_usb/
279286
echo "***"
280287
echo "***"
281-
echo "Code is not up to par for mypy, skipping"
288+
echo "Code is not up to par for mypy, skipping - see #171"
282289
echo "***"
283290
echo "***"
284291

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ repos:
3535
- id: codespell
3636
name: "Check Code Spelling"
3737
args:
38-
- --ignore-words-list=aiport,astroid,checkin,currenty,hass,iif,incomfort,lookin,nam,NotIn
39-
# Previous list, remove before merge
40-
# - ignore-words-list = additionals,alle,alot,ba,bre,bund,currenty,datas,dof,dur,ether,farenheit,falsy,fo,haa,hass,hist,iam,iff,iif,incomfort,ines,ist,leeg,lightsensor,mut,nam,nd,pres,pullrequests,referer,resset,rime,ser,serie,sur,te,technik,ue,uint,unsecure,visability,wan,wanna,withing,zar
38+
- --ignore-words-list=aiport,astroid,checkin,currenty,hass,iif,incomfort,lookin,nam,NotIn # Previous list, remove before merge # - ignore-words-list = additionals,alle,alot,ba,bre,bund,currenty,datas,dof,dur,ether,farenheit,falsy,fo,haa,hass,hist,iam,iff,iif,incomfort,ines,ist,leeg,lightsensor,mut,nam,nd,pres,pullrequests,referer,resset,rime,ser,serie,sur,te,technik,ue,uint,unsecure,visability,wan,wanna,withing,zar
4139
- --skip="./.*,*.csv,*.json,*.ambr"
4240
- --quiet-level=2
4341
exclude_types: [csv, json]

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Ongoing
44

55
- PR [#261](https://github.com/plugwise/python-plugwise-usb/pull/261): Sense: bugfix parsing of humidity value as an unsigned int
6+
- Maintenance chores and re-instatement of ruff, deprecate pre-commit cloud runs (just leveraging renovate)
67

78
## v0.44.3 - 2025-06-12
89

0 commit comments

Comments
 (0)