fix: resolve CI/CD test failures and linting issues
Some checks failed
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
2026-02-04 07:32:09 +00:00
parent 249eeaf4d5
commit 3cb46dc1bd

View File

@@ -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")