Skip to content

Commit 1ea31b5

Browse files
authored
Merge pull request #815 from plugwise/smallfixes
Fix markdown and missing requirement
2 parents 062cbbb + ec9680f commit 1ea31b5

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ ignore = [
499499
"PLR0915", # Too many statements ({statements} > {max_statements})
500500
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
501501
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target
502-
"PT004", # Fixture {fixture} does not return anything, add leading underscore
503502
"PT011", # pytest.raises({exception}) is too broad, set the `match` parameter or use a more specific exception
504503
"PT018", # Assertion should be broken down into multiple parts
505504
"RUF001", # String contains ambiguous unicode character.
@@ -512,9 +511,9 @@ ignore = [
512511
"SIM115", # Use context handler for opening files
513512

514513
# Moving imports into type-checking blocks can mess with pytest.patch()
515-
"TCH001", # Move application import {} into a type-checking block
516-
"TCH002", # Move third-party import {} into a type-checking block
517-
"TCH003", # Move standard library import {} into a type-checking block
514+
"TC001", # Move application import {} into a type-checking block
515+
"TC002", # Move third-party import {} into a type-checking block
516+
"TC003", # Move standard library import {} into a type-checking block
518517

519518
"TRY003", # Avoid specifying long messages outside the exception class
520519
"TRY400", # Use `logging.exception` instead of `logging.error`
@@ -531,7 +530,6 @@ ignore = [
531530
"Q",
532531
"COM812",
533532
"COM819",
534-
"ISC001",
535533

536534
# Disabled because ruff does not understand type of __all__ generated by a function
537535
"PLE0605"

scripts/core-testing.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "core_prep" ] ; then
101101
cp -a "${manualdir}." "${coredir}"
102102
else
103103
echo ""
104-
echo -e "${CINFO} ** Cloning HA core **{CNORM}"
104+
echo -e "${CINFO} ** Cloning HA core **${CNORM}"
105105
echo ""
106106
git clone https://github.com/home-assistant/core.git "${coredir}"
107107
cp -a "${coredir}." "${manualdir}"
@@ -185,12 +185,12 @@ if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "pip_prep" ] ; then
185185
echo -e "${CINFO}Installing pip modules (using uv)${CNORM}"
186186
echo ""
187187
echo -e "${CINFO} - HA requirements (core and test)${CNORM}"
188-
uv pip install --upgrade -r requirements.txt -r requirements_test.txt
188+
pip install --upgrade -r requirements.txt -r requirements_test.txt
189189
grep -hEi "${pip_packages}" requirements_test_all.txt > ./tmp/requirements_test_extra.txt
190190
echo -e "${CINFO} - extra's required for plugwise${CNORM}"
191-
uv pip install --upgrade -r ./tmp/requirements_test_extra.txt
191+
pip install --upgrade -r ./tmp/requirements_test_extra.txt
192192
echo -e "${CINFO} - home assistant basics${CNORM}"
193-
uv pip install -e . --config-settings editable_mode=compat --constraint homeassistant/package_constraints.txt
193+
pip install -e . --config-settings editable_mode=compat --constraint homeassistant/package_constraints.txt
194194
echo ""
195195
# When using test.py prettier makes multi-line, so use jq
196196
module=$(jq '.requirements[]' ../custom_components/plugwise/manifest.json | tr -d '"')

0 commit comments

Comments
 (0)