Add python pre-commit script checkers
Fix up issues in existing python scripts.
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Id4adab404560c3129c66f31c21ff0ce148283c73
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 @@
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(