Skip to content

Commit

Permalink
Improved docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhp1 committed Oct 11, 2024
1 parent f5823aa commit ee5d6cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion logger/modules/log_file_merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
def merge_log_files(log_file_directory: str) -> None:
"""
Reads, sorts, and writes log files in the specified directory.
log_file_directory: The directory containing the log files to be merged.
"""
# Read log files
log_files = [
Expand All @@ -38,7 +40,7 @@ def merge_log_files(log_file_directory: str) -> None:

def get_current_run_directory() -> str:
"""
Gets directory of current run.
Returns directory of current run.
"""
# Configuration settings
result, config = read_yaml.open_config(CONFIG_FILE_PATH)
Expand Down
2 changes: 1 addition & 1 deletion logger/test_log_file_merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@pytest.fixture(name="dummy_logs")
def fixture_dummy_logs() -> str: # type: ignore
"""
Creates a temporary directory with dummy log files.
Returns the path to a temporary directory with dummy log files.
"""
temp_directory = tempfile.mkdtemp()
subdirectory = os.path.join(temp_directory, "subdirectory")
Expand Down

0 comments on commit ee5d6cf

Please sign in to comment.