Skip to content

Commit 2663dc9

Browse files
author
Christopher Giroir
authored
fix: set default for append-newline flag to None (#4820)
1 parent 5228105 commit 2663dc9

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

sqlmesh/cli/main.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,26 @@
44
import os
55
import sys
66
import typing as t
7+
from pathlib import Path
78

89
import click
10+
911
from sqlmesh import configure_logging, remove_excess_logs
1012
from sqlmesh.cli import error_handler
1113
from sqlmesh.cli import options as opt
1214
from sqlmesh.cli.project_init import (
15+
InitCliMode,
1316
ProjectTemplate,
1417
init_example_project,
15-
InitCliMode,
1618
interactive_init,
1719
)
1820
from sqlmesh.core.analytics import cli_analytics
19-
from sqlmesh.core.console import configure_console, get_console
20-
from sqlmesh.utils import Verbosity
2121
from sqlmesh.core.config import load_configs
22+
from sqlmesh.core.console import configure_console, get_console
2223
from sqlmesh.core.context import Context
24+
from sqlmesh.utils import Verbosity
2325
from sqlmesh.utils.date import TimeLike
2426
from sqlmesh.utils.errors import MissingDependencyError, SQLMeshError
25-
from pathlib import Path
2627

2728
logger = logging.getLogger(__name__)
2829

@@ -355,6 +356,7 @@ def evaluate(
355356
"--append-newline",
356357
is_flag=True,
357358
help="Include a newline at the end of each file.",
359+
default=None,
358360
)
359361
@opt.format_options
360362
@click.pass_context
@@ -805,7 +807,11 @@ def check_intervals(
805807
context = ctx.obj
806808
context.console.show_intervals(
807809
context.check_intervals(
808-
environment, no_signals=no_signals, select_models=select_model, start=start, end=end
810+
environment,
811+
no_signals=no_signals,
812+
select_models=select_model,
813+
start=start,
814+
end=end,
809815
)
810816
)
811817

@@ -1107,7 +1113,10 @@ def clean(obj: Context) -> None:
11071113
@error_handler
11081114
@cli_analytics
11091115
def table_name(
1110-
obj: Context, model_name: str, environment: t.Optional[str] = None, prod: bool = False
1116+
obj: Context,
1117+
model_name: str,
1118+
environment: t.Optional[str] = None,
1119+
prod: bool = False,
11111120
) -> None:
11121121
"""Prints the name of the physical table for the given model."""
11131122
print(obj.table_name(model_name, environment, prod))

0 commit comments

Comments
 (0)