mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Enable Ruff RET504 (#114528)
* Enable Ruff RET504 * fix test * Use noqa instead of cast * fix sonos RET504 --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -263,9 +263,7 @@ def normalize_package_name(requirement: str) -> str:
|
||||
return ""
|
||||
|
||||
# pipdeptree needs lowercase and dash instead of underscore as separator
|
||||
package = match.group(1).lower().replace("_", "-")
|
||||
|
||||
return package
|
||||
return match.group(1).lower().replace("_", "-")
|
||||
|
||||
|
||||
def comment_requirement(req: str) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user