Skip to content

Commit d39cbee

Browse files
committed
[TZP-260007]: refactor: reorganize imports in __main__.py and remove unnecessary whitespace in greeting.py
1 parent 0649aeb commit d39cbee

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/sample/__main__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# sample/__main__.py
22

3-
from . import __version__
4-
import sys
53
import logging
64
import subprocess
5+
import sys
76
from pathlib import Path
87

8+
from sample.db.connection import connect_db
9+
10+
from . import __version__
11+
912

1013
def main():
1114
"""
1215
Entrypoint for the Streamlit 'dev' app.
1316
"""
1417
print("🏷️ Sample version:", __version__)
18+
connect_db()
1519
logging.info("Starting sample dev script...")
1620

1721
# Paths

src/sample/features/greeting.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import streamlit as st
2-
32
from sample.utils.constants import APP_TITLE, DEFAULT_GREETING
43
from sample.utils.helper import normalize_name
54

0 commit comments

Comments
 (0)