mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Upgrade ruff to 0.0.285 (#98647)
This commit is contained in:
@@ -77,11 +77,13 @@ def main():
|
||||
pipe_null = {} if args.develop else {"stdout": subprocess.DEVNULL}
|
||||
|
||||
print("Running hassfest to pick up new information.")
|
||||
subprocess.run(["python", "-m", "script.hassfest"], **pipe_null)
|
||||
subprocess.run(["python", "-m", "script.hassfest"], **pipe_null, check=True)
|
||||
print()
|
||||
|
||||
print("Running gen_requirements_all to pick up new information.")
|
||||
subprocess.run(["python", "-m", "script.gen_requirements_all"], **pipe_null)
|
||||
subprocess.run(
|
||||
["python", "-m", "script.gen_requirements_all"], **pipe_null, check=True
|
||||
)
|
||||
print()
|
||||
|
||||
print("Running script/translations_develop to pick up new translation strings.")
|
||||
@@ -95,13 +97,16 @@ def main():
|
||||
info.domain,
|
||||
],
|
||||
**pipe_null,
|
||||
check=True,
|
||||
)
|
||||
print()
|
||||
|
||||
if args.develop:
|
||||
print("Running tests")
|
||||
print(f"$ pytest -vvv tests/components/{info.domain}")
|
||||
subprocess.run(["pytest", "-vvv", f"tests/components/{info.domain}"])
|
||||
subprocess.run(
|
||||
["pytest", "-vvv", f"tests/components/{info.domain}"], check=True
|
||||
)
|
||||
print()
|
||||
|
||||
docs.print_relevant_docs(args.template, info)
|
||||
|
Reference in New Issue
Block a user