From 2272fc1127f75971e771fa1556e169353946ef8d Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Wed, 25 Jun 2025 00:23:36 +0200 Subject: [PATCH] Fix docstring formatting issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix docstring punctuation in html_data_format/__init__.py - Convert multi-line docstring to single line in html_data_format/__main__.py - Convert multi-line docstring to single line in setup.py - Replace set([...]) with set literal {...} in setup.py 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- html_data_format/__init__.py | 2 +- html_data_format/__main__.py | 6 +----- setup.py | 6 ++---- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/html_data_format/__init__.py b/html_data_format/__init__.py index a81fdcd..470c8f5 100644 --- a/html_data_format/__init__.py +++ b/html_data_format/__init__.py @@ -1 +1 @@ -"""# HTML-Data Formatting""" +"""HTML-Data Formatting.""" diff --git a/html_data_format/__main__.py b/html_data_format/__main__.py index 75cf938..334efc5 100644 --- a/html_data_format/__main__.py +++ b/html_data_format/__main__.py @@ -13,11 +13,7 @@ ROOT_DIRECTORY = Path('output') @bottle.route('//newest') def newest_entry(csv_type: str): - """ - Loads a CSV file (default: data.csv, overridable by query param 'file'), - finds the newest entry based on the 'time.current' column, and returns it as JSON. - """ - + """Loads a CSV file and finds the newest entry based on 'time.current' column, returns as JSON.""" path = ROOT_DIRECTORY / f'{csv_type}.csv' bottle.response.content_type = 'application/json' diff --git a/setup.py b/setup.py index 2fe044b..6d0700a 100644 --- a/setup.py +++ b/setup.py @@ -66,11 +66,9 @@ def parse_version_file(text: str) -> str: def find_python_packages() -> list[str]: - """ - Find all python packages. (Directories containing __init__.py files.) - """ + """Find all python packages (directories containing __init__.py files).""" root_path = Path(PACKAGE_NAME) - packages: set[str] = set([PACKAGE_NAME]) + packages: set[str] = {PACKAGE_NAME} # Search recursively for init_file in root_path.rglob('__init__.py'):