@@ -33,7 +33,7 @@ def initialize(
33
33
ext.initialize(force)
34
34
except Exception:
35
35
log.exception(
36
- "initialize failed with uncaught exception, please report to maintainer"
36
+ "initialize failed with uncaught exception, please report to maintainer",
37
37
)
38
38
sys.exit(1)
39
39
@@ -50,23 +50,28 @@ def invoke(ctx: typer.Context, command_args: List[str]) -> None:
50
50
"""
51
51
command_name, command_args = command_args[0], command_args[1:]
52
52
log.debug(
53
- "called", command_name=command_name, command_args=command_args, env=os.environ
53
+ "called",
54
+ command_name=command_name,
55
+ command_args=command_args,
56
+ env=os.environ,
54
57
)
55
58
ext.pass_through_invoker(log, command_name, *command_args)
56
59
57
60
58
61
@app.command()
59
62
def describe(
60
63
output_format: DescribeFormat = typer.Option(
61
- DescribeFormat.text, "--format", help="Output format"
62
- )
64
+ DescribeFormat.text,
65
+ "--format",
66
+ help="Output format",
67
+ ),
63
68
) -> None:
64
69
"""Describe the available commands of this extension."""
65
70
try:
66
71
typer.echo(ext.describe_formatted(output_format))
67
72
except Exception:
68
73
log.exception(
69
- "describe failed with uncaught exception, please report to maintainer"
74
+ "describe failed with uncaught exception, please report to maintainer",
70
75
)
71
76
sys.exit(1)
72
77
@@ -76,21 +81,27 @@ def main(
76
81
ctx: typer.Context,
77
82
log_level: str = typer.Option("INFO", envvar="LOG_LEVEL"),
78
83
log_timestamps: bool = typer.Option(
79
- False, envvar="LOG_TIMESTAMPS", help="Show timestamp in logs"
84
+ False,
85
+ envvar="LOG_TIMESTAMPS",
86
+ help="Show timestamp in logs",
80
87
),
81
88
log_levels: bool = typer.Option(
82
- False, "--log-levels", envvar="LOG_LEVELS", help="Show log levels"
89
+ False,
90
+ "--log-levels",
91
+ envvar="LOG_LEVELS",
92
+ help="Show log levels",
83
93
),
84
94
meltano_log_json: bool = typer.Option(
85
- False, "--meltano-log-json",
95
+ False,
96
+ "--meltano-log-json",
86
97
envvar="MELTANO_LOG_JSON",
87
- help="Log in the meltano JSON log format"
98
+ help="Log in the meltano JSON log format",
88
99
),
89
100
) -> None:
90
101
"""Simple Meltano extension that wraps the {{ wrapper_target_name }} CLI."""
91
102
default_logging_config(
92
103
level=parse_log_level(log_level),
93
104
timestamps=log_timestamps,
94
105
levels=log_levels,
95
- json_format=meltano_log_json
106
+ json_format=meltano_log_json,
96
107
)
0 commit comments