From 5c1364c8a547127bc90e4d4a78dd876070eb1026 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Thu, 13 Jan 2022 15:04:21 +0000 Subject: Add python pre-commit script checkers Fix up issues in existing python scripts. Signed-off-by: Jeremy Johnson Change-Id: Id4adab404560c3129c66f31c21ff0ce148283c73 --- scripts/json2fbbin/json2fbbin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/json2fbbin/json2fbbin.py b/scripts/json2fbbin/json2fbbin.py index 957acb1..8f9f274 100644 --- a/scripts/json2fbbin/json2fbbin.py +++ b/scripts/json2fbbin/json2fbbin.py @@ -4,7 +4,8 @@ from pathlib import Path from typing import Optional -from runner.run_command import run_sh_command, RunShCommandError +from runner.run_command import run_sh_command +from runner.run_command import RunShCommandError def fbbin_to_json(flatc: Path, fbs: Path, t_path: Path, o_path: Optional[Path] = None): @@ -63,7 +64,10 @@ def main(argv=None): parser.add_argument( "--flatc", type=Path, - default="reference_model/build/thirdparty/serialization_lib/third_party/flatbuffers/flatc", + default=( + "reference_model/build/thirdparty/serialization_lib/" + "third_party/flatbuffers/flatc" + ), help="the path to the flatc compiler program", ) parser.add_argument( -- cgit v1.2.1