File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ jobs:
1717 python-version : ["3.10", "3.11", "3.12", "3.13"]
1818
1919 steps :
20- - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
20+ - uses : actions/checkout@v4
2121 with :
2222 persist-credentials : false
2323
2424 - name : Set up Python ${{ matrix.python-version }}
25- uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
25+ uses : actions/setup-python@v5
2626 with :
2727 python-version : ${{ matrix.python-version }}
2828
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ def require_license(product: str) -> None: # type: ignore[misc]
2222 pass
2323
2424
25- from .converter import JSONToSQLConverter
26- from .dialects import Dialect
27-
2825_require_license_strict : bool = False
2926
3027app = typer .Typer (
@@ -114,6 +111,10 @@ def convert(
114111 """Convert a JSON file to SQL INSERT statements."""
115112 _check_license ("json2sql" )
116113
114+ # Lazy imports — cold-start optimization (~180ms savings)
115+ from .converter import JSONToSQLConverter
116+ from .dialects import Dialect
117+
117118 # Validate dialect
118119 try :
119120 dialect_enum = Dialect (dialect )
@@ -182,3 +183,4 @@ def version() -> None:
182183
183184if __name__ == "__main__" :
184185 app ()
186+
You can’t perform that action at this time.
0 commit comments