Skip to content

Commit 585bc32

Browse files
committed
Fix markdown and missing requirement
1 parent 7f27a28 commit 585bc32

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ echo -e "${CINFO}Working on HA-core branch ${core_branch}${CNORM}"
3737
# Which packages to install (to prevent installing all test requirements)
3838
# actual package version ARE verified (i.e. grepped) from requirements_test_all
3939
# separate packages with |
40-
pip_packages="fnvhash|lru-dict|voluptuous|aiohasupervisor|aiohttp_cors|pyroute2|sqlalchemy|zeroconf|pytest-socket|pre-commit|paho-mqtt|numpy|pydantic|ruff|ffmpeg|hassil|home-assistant-intents|pylint|pylint-per-file-ignores|cronsim"
40+
pip_packages="fnvhash|lru-dict|voluptuous|aiohasupervisor|aiohttp_cors|pyroute2|sqlalchemy|zeroconf|pytest-socket|pre-commit|paho-mqtt|numpy|pydantic|ruff|ffmpeg|hassil|home-assistant-intents|pylint|pylint-per-file-ignores|cronsim|mock-open"
4141

4242
echo ""
4343
echo -e "${CINFO}Checking for necessary tools and preparing setup:${CNORM}"
@@ -89,7 +89,7 @@ if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "core_prep" ] ; then
8989
if [ ! -f "${coredir}/requirements_test_all.txt" ]; then
9090
if [ -d "${manualdir}" ]; then
9191
echo ""
92-
echo -e "${CINFO} ** Re-using copy, rebasing and copy to HA core**${CNORM}"
92+
echo -e "${CINFO} ** Reusing copy, rebasing and copy to HA core**${CNORM}"
9393
echo ""
9494
cd "${manualdir}" || exit
9595
echo ""
@@ -123,7 +123,7 @@ if [ -z "${GITHUB_ACTIONS}" ] || [ "$1" == "core_prep" ] ; then
123123
else
124124
cd "${coredir}" || exit
125125
echo ""
126-
echo -e "${CINFO} ** Resetting/rebasing core (re-using clone)**${CNORM}"
126+
echo -e "${CINFO} ** Resetting/rebasing core (reusing clone)**${CNORM}"
127127
echo ""
128128
# Always start from ${core_branch}, dropping any leftovers
129129
git stash || echo -e "${CWARN} - Nothing to stash${CNORM}"

0 commit comments

Comments
 (0)