Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-45138: Flesh out __all__ for all modules #201

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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