Skip to content

Commit

Permalink
Fix more pipeline issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoOpenCosmos committed Jan 30, 2025
1 parent 28ab835 commit 98898c2
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 27 deletions.
9 changes: 4 additions & 5 deletions config/config.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"""
Configuration module for the Datacosmos SDK.
"""Configuration module for the Datacosmos SDK.
This module provides configuration management using Pydantic and Pydantic Settings.
It loads default values, allows overrides via YAML configuration files,
Handles configuration management using Pydantic and Pydantic Settings.
It loads default values, allows overrides via YAML configuration files,
and supports environment variable-based overrides.
"""

Expand Down Expand Up @@ -70,7 +69,7 @@ def from_yaml(cls, file_path: str = "config/config.yaml") -> "Config":
def merge_with_env(cls, values):
"""Override settings with environment variables if set.
This method checks if any environment variables corresponding to the
This method checks if any environment variables corresponding to the
config fields are set and updates their values accordingly.
Args:
Expand Down
7 changes: 3 additions & 4 deletions config/models/m2m_authentication_config.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"""
Module for configuring machine-to-machine (M2M) authentication.
"""Module for configuring machine-to-machine (M2M) authentication.
This configuration is used when running scripts in the cluster that require
automated authentication without user interaction.
Used when running scripts in the cluster that require automated authentication
without user interaction.
"""

from typing import Literal
Expand Down
7 changes: 3 additions & 4 deletions config/models/url.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"""
Module defining a URL configuration model.
"""Module defining a structured URL configuration model.
This module provides a structured way to handle URLs, ensuring they
contain required components such as protocol, host, port, and path.
Ensures that URLs contain required components such as protocol, host,
port, and path.
"""

from common.domain.url import URL as DomainURL
Expand Down
2 changes: 1 addition & 1 deletion datacosmos/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(
):
"""Initialize the DatacosmosClient.
Load configuration from the specified YAML file, environment variables,
Load configuration from the specified YAML file, environment variables,
or fallback to the default values provided in the `Config` class.
"""
self.logger = logging.getLogger(__name__)
Expand Down
8 changes: 3 additions & 5 deletions datacosmos/stac/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""
STAC package for interacting with the STAC API.
"""STAC package for interacting with the STAC API, providing query and fetch functionalities.
This package provides functionalities to query, fetch, and interact
with STAC (SpatioTemporal Asset Catalog) services using an authenticated
Datacosmos client.
It enables interaction with STAC (SpatioTemporal Asset Catalog) services
using an authenticated Datacosmos client.
"""
7 changes: 2 additions & 5 deletions datacosmos/stac/models/search_parameters.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Module defining the SearchParameters model for STAC API queries.
"""Module defining the SearchParameters model for STAC API queries, encapsulating filtering criteria.
This module contains the `SearchParameters` model, which encapsulates
filtering criteria for searching STAC items, such as spatial, temporal,
and property-based filters.
It includes spatial, temporal, and property-based filters for querying STAC items efficiently.
"""

from typing import Optional, Union
Expand Down
5 changes: 2 additions & 3 deletions datacosmos/stac/stac_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
STAC Client module.
"""STAC Client module for interacting with a STAC (SpatioTemporal Asset Catalog) API.
This module provides a client to interact with a STAC (SpatioTemporal Asset Catalog) API.
Provides methods for querying, fetching, and paginating STAC items.
"""

from typing import Generator, Optional
Expand Down

0 comments on commit 98898c2

Please sign in to comment.