diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-01-13 15:04:21 +0000 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-01-13 15:04:25 +0000 |
commit | 5c1364c8a547127bc90e4d4a78dd876070eb1026 (patch) | |
tree | 70187ef07f549687918f8a93725b74f1f7fc2715 /scripts/json2fbbin | |
parent | be1a9408eb53871d96a022f59664f016926a8cf4 (diff) | |
download | reference_model-5c1364c8a547127bc90e4d4a78dd876070eb1026.tar.gz |
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
Diffstat (limited to 'scripts/json2fbbin')
-rw-r--r-- | scripts/json2fbbin/json2fbbin.py | 8 |
1 files changed, 6 insertions, 2 deletions
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( |