Skip to content

Commit

Permalink
fix: pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
clatapie committed Dec 12, 2024
1 parent fbc0c7a commit abc9a1d
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/pyconverter/xml2py/ast_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2358,7 +2358,11 @@ def _parse_list_entry(self):
self._arguments.append(temp_args[initial_arg])
else:
self._arguments.append(
Argument(initial_arg, self._initial_args, MISSING_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}"))
Argument(
initial_arg,
self._initial_args,
MISSING_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}"),
)
) # description is missing

is_additional_arg = False
Expand All @@ -2371,7 +2375,9 @@ def _parse_list_entry(self):
if is_additional_arg and "addional_command_arg" not in self.py_arg_names:
self._arguments.append(
Argument(
"addional_command_arg", self._initial_args, ADDITIONAL_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}")
"addional_command_arg",
self._initial_args,
ADDITIONAL_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}"),
)
)

Expand All @@ -2393,7 +2399,11 @@ def __iadd__(self, argument_list):
else:
if initial_arg not in self.py_arg_names:
self._arguments.append(
Argument(initial_arg, self._initial_args, MISSING_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}"))
Argument(
initial_arg,
self._initial_args,
MISSING_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}"),
)
)

is_additional_arg = False
Expand All @@ -2406,7 +2416,9 @@ def __iadd__(self, argument_list):
if is_additional_arg and "addional_command_arg" not in self.py_arg_names:
self._arguments.append(
Argument(
"addional_command_arg", self._initial_args, ADDITIONAL_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}")
"addional_command_arg",
self._initial_args,
ADDITIONAL_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}"),
)
)

Expand Down Expand Up @@ -2436,7 +2448,7 @@ def py_arg_names(self):
@property
def additional_args(self):
return self._additional_args

def remove_last_arg(self):
self._arguments.pop()

Expand Down

0 comments on commit abc9a1d

Please sign in to comment.