Upgrade ruff to 0.0.285 (#98647)

This commit is contained in:
Ville Skyttä
2023-08-19 15:17:17 +03:00
committed by GitHub
parent f318063a77
commit 3094991236
39 changed files with 109 additions and 119 deletions

View File

@@ -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)