From 188e54286d28bdfc86f21cdeedd76a95f8587b65 Mon Sep 17 00:00:00 2001 From: fabian Date: Fri, 14 Jun 2024 20:02:51 +0200 Subject: [PATCH] Reformatted --- src/gallia/command/base.py | 14 ++++++++++++-- src/gallia/command/config.py | 2 +- src/gallia/commands/primitive/uds/dtc.py | 1 - src/gallia/commands/script/vecu.py | 1 - 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/gallia/command/base.py b/src/gallia/command/base.py index a1e96a4fa..12ddef776 100644 --- a/src/gallia/command/base.py +++ b/src/gallia/command/base.py @@ -318,7 +318,12 @@ def entry_point(self) -> int: return exit_code -class ScriptConfig(BaseCommandConfig, ABC, argument_group=BaseCommandConfig._argument_group, config_section=BaseCommandConfig._config_section): +class ScriptConfig( + BaseCommandConfig, + ABC, + argument_group=BaseCommandConfig._argument_group, + config_section=BaseCommandConfig._config_section, +): pass @@ -346,7 +351,12 @@ def run(self) -> int: return exitcode.OK -class AsyncScriptConfig(BaseCommandConfig, ABC, argument_group=BaseCommandConfig._argument_group, config_section=BaseCommandConfig._config_section): +class AsyncScriptConfig( + BaseCommandConfig, + ABC, + argument_group=BaseCommandConfig._argument_group, + config_section=BaseCommandConfig._config_section, +): pass diff --git a/src/gallia/command/config.py b/src/gallia/command/config.py index 9cc2378da..b4834df03 100644 --- a/src/gallia/command/config.py +++ b/src/gallia/command/config.py @@ -87,7 +87,7 @@ def Field( class GalliaBaseModel(BaseCommand, ABC): init_kwargs: dict | None = None _argument_group: str | None - _config_section : str | None + _config_section: str | None def __init__(self, **data: Any): init_kwargs = data.pop("init_kwargs", {}) diff --git a/src/gallia/commands/primitive/uds/dtc.py b/src/gallia/commands/primitive/uds/dtc.py index 3cd4b6328..04b6d8175 100644 --- a/src/gallia/commands/primitive/uds/dtc.py +++ b/src/gallia/commands/primitive/uds/dtc.py @@ -3,7 +3,6 @@ # SPDX-License-Identifier: Apache-2.0 import sys -from functools import partial from pydantic_argparse import BaseCommand from tabulate import tabulate diff --git a/src/gallia/commands/script/vecu.py b/src/gallia/commands/script/vecu.py index 8cef8ce2b..27ddebc14 100644 --- a/src/gallia/commands/script/vecu.py +++ b/src/gallia/commands/script/vecu.py @@ -2,7 +2,6 @@ # # SPDX-License-Identifier: Apache-2.0 -import json import random import sys from pathlib import Path