fix: resolve CI/CD test failures and linting issues
This commit is contained in:
@@ -7,7 +7,6 @@ from typing import Optional
|
|||||||
import typer
|
import typer
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
from rich.table import Table
|
from rich.table import Table
|
||||||
from rich.syntax import Syntax
|
|
||||||
|
|
||||||
from config_convert import __version__
|
from config_convert import __version__
|
||||||
from config_convert.converters import (
|
from config_convert.converters import (
|
||||||
@@ -89,6 +88,7 @@ def convert(
|
|||||||
echo_error("Please specify --from when using --stdin")
|
echo_error("Please specify --from when using --stdin")
|
||||||
raise typer.Exit(2)
|
raise typer.Exit(2)
|
||||||
else:
|
else:
|
||||||
|
assert input_file is not None
|
||||||
fmt = from_format or get_format_from_path(input_file)
|
fmt = from_format or get_format_from_path(input_file)
|
||||||
data_str = Path(input_file).read_text(encoding="utf-8")
|
data_str = Path(input_file).read_text(encoding="utf-8")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user