Skip to content

Commit bcf5f8f

Browse files
style: apply ruff format to src/json2sql/cli.py
1 parent e9005b6 commit bcf5f8f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/json2sql/cli.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@
1212
from revenueholdings_license import require_license
1313
except ImportError:
1414
import warnings
15-
warnings.warn("revenueholdings-license not installed; license checks skipped", stacklevel=2)
15+
16+
warnings.warn(
17+
"revenueholdings-license not installed; license checks skipped", stacklevel=2
18+
)
19+
1620
def require_license(product: str) -> None: # type: ignore[misc]
1721
pass
1822

23+
1924
from .converter import JSONToSQLConverter
2025
from .dialects import Dialect
2126

@@ -70,7 +75,9 @@ def convert(
7075
dialect_enum = Dialect(dialect)
7176
except ValueError:
7277
valid = ", ".join(d.value for d in Dialect)
73-
typer.echo(f"Error: Unknown dialect '{dialect}'. Choose from: {valid}", err=True)
78+
typer.echo(
79+
f"Error: Unknown dialect '{dialect}'. Choose from: {valid}", err=True
80+
)
7481
raise typer.Exit(code=1) from None
7582

7683
# Read input
@@ -124,6 +131,7 @@ def mcp() -> None:
124131
def version() -> None:
125132
"""Show version."""
126133
from . import __version__
134+
127135
typer.echo(f"json2sql {__version__}")
128136

129137

0 commit comments

Comments
 (0)