Move to Simplified Imports
Import statements are messy, right now. This is mostly because we've got to maintain some sense of structure to allow the imports to work for both the deployed application and the test system.
try:
from backend import api, auth, configuration, __header__, __version__
from backend.storage import SessionManager
from backend.configuration.models import(
StateEventInfo, DistrictEventInfo, CountyEventInfo, NationalEventInfo
)
except ImportError:
import api
import auth
import configuration
from __init__ import __header__, __version__
from storage import SessionManager
from configuration.models import(
StateEventInfo, DistrictEventInfo, CountyEventInfo, NationalEventInfo
)
It seems those could be modified to clean them up substantially:
from . import api, auth, configuration, __header__, __version__
from .storage import SessionManager
from .configuration.models import(
StateEventInfo, DistrictEventInfo, CountyEventInfo, NationalEventInfo
)
Edited by Joe Stanley