fix: resolve CI linting and type checking issues
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
"""CLI interface for Config Converter."""
|
||||
|
||||
import glob
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import List, Optional
|
||||
|
||||
import click
|
||||
|
||||
from config_converter.converters import BaseConverter, JsonConverter, YamlConverter, TomlConverter, IniConverter
|
||||
from config_converter.converters import BaseConverter
|
||||
from config_converter.generators import TypeScriptGenerator
|
||||
from config_converter.validators import SchemaInferrer, SchemaValidator
|
||||
from config_converter.utils import OutputFormatter
|
||||
@@ -107,7 +106,7 @@ def batch_convert(
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
target_converter = BaseConverter.get_converter(to_format)
|
||||
BaseConverter.get_converter(to_format)
|
||||
except Exception as e:
|
||||
formatter.print_error(str(e))
|
||||
sys.exit(1)
|
||||
@@ -143,14 +142,14 @@ def batch_convert(
|
||||
continue
|
||||
converter.write(data, output_path)
|
||||
else:
|
||||
formatter.print_error(f"Output directory required for batch conversion")
|
||||
formatter.print_error("Output directory required for batch conversion")
|
||||
failed_count += 1
|
||||
failed_files.append(file_path)
|
||||
continue
|
||||
|
||||
success_count += 1
|
||||
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
failed_count += 1
|
||||
failed_files.append(file_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user