Skip to content

Commit 773564b

Browse files
committed
style: add docstrings to public modules and functions
1 parent f8309a8 commit 773564b

5 files changed

Lines changed: 22 additions & 0 deletions

File tree

__main__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
"""Main entry point for the application."""
2+
13
from src.config.env import APP_STAGE, ENV_PATH
24
from src.utils.logging import setup_logging
35

46

57
def main() -> None:
8+
"""
9+
Main entry point for the application.
10+
11+
Initializes logging, logs the application start,
12+
current stage, and the path from which environment variables are loaded.
13+
"""
14+
615
logger = setup_logging()
716
logger.info("Starting the application...")
817
logger.info(f"App stage: {APP_STAGE}")

src/config/env.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Environment configuration module for loading environment variables."""
2+
13
import os
24
from pathlib import Path
35
from typing import Final

src/factory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Factory module."""

src/utils/logging/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Configuration constants for logging setup."""
2+
13
from logging import INFO
24
from typing import Final
35

src/utils/logging/setup.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Setup logging utilities for the application."""
2+
13
import logging
24
import sys
35

@@ -8,6 +10,12 @@
810

911

1012
def setup_logging() -> logging.Logger:
13+
"""Set up and configure logging for the application.
14+
15+
Returns:
16+
logging.Logger: Configured root logger.
17+
"""
18+
1119
# Create a logger
1220
logger = logging.getLogger()
1321
logger.setLevel(level=DEFAULT_LOGGING_LEVEL)

0 commit comments

Comments
 (0)