Skip to content

Commit

Permalink
Merge pull request #201 from lsst-sqre/tickets/DM-45138
Browse files Browse the repository at this point in the history
DM-45138: Flesh out __all__ for all modules
  • Loading branch information
rra authored Jul 11, 2024
2 parents 7eb1c6c + 60fe420 commit 0d7bb49
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/vocutouts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@

from .config import uws

__all__ = [
"help",
"init",
"main",
]


@click.group(context_settings={"help_option_names": ["-h", "--help"]})
@click.version_option(message="%(version)s")
Expand Down
4 changes: 2 additions & 2 deletions src/vocutouts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


@asynccontextmanager
async def lifespan(app: FastAPI) -> AsyncIterator[None]:
async def _lifespan(app: FastAPI) -> AsyncIterator[None]:
"""Set up and tear down the application."""
await uws_dependency.initialize(config.uws_config)
yield
Expand All @@ -47,7 +47,7 @@ async def lifespan(app: FastAPI) -> AsyncIterator[None]:
openapi_url=f"{config.path_prefix}/openapi.json",
docs_url=f"{config.path_prefix}/docs",
redoc_url=f"{config.path_prefix}/redoc",
lifespan=lifespan,
lifespan=_lifespan,
)
"""The main FastAPI application for vo-cutouts."""

Expand Down
1 change: 1 addition & 0 deletions src/vocutouts/models/cutout.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"PolygonStencil",
"Range",
"RangeStencil",
"Stencil",
]


Expand Down
1 change: 1 addition & 0 deletions src/vocutouts/uws/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"ExecutionDurationValidator",
"ParametersDependency",
"ParametersModel",
"T",
"UWSConfig",
]

Expand Down
1 change: 1 addition & 0 deletions src/vocutouts/uws/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
__all__ = [
"DataMissingError",
"InvalidPhaseError",
"MultiValuedParameterError",
"ParameterError",
"PermissionDeniedError",
"SyncJobFailedError",
Expand Down
1 change: 1 addition & 0 deletions src/vocutouts/uws/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from enum import Enum, StrEnum

__all__ = [
"ACTIVE_PHASES",
"Availability",
"ErrorCode",
"ExecutionPhase",
Expand Down

0 comments on commit 0d7bb49

Please sign in to comment.