Fix docstring formatting issues
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
36ba48f36e
commit
2272fc1127
|
@ -1 +1 @@
|
||||||
"""# HTML-Data Formatting"""
|
"""HTML-Data Formatting."""
|
||||||
|
|
|
@ -13,11 +13,7 @@ ROOT_DIRECTORY = Path('output')
|
||||||
|
|
||||||
@bottle.route('/<csv_type>/newest')
|
@bottle.route('/<csv_type>/newest')
|
||||||
def newest_entry(csv_type: str):
|
def newest_entry(csv_type: str):
|
||||||
"""
|
"""Loads a CSV file and finds the newest entry based on 'time.current' column, returns as JSON."""
|
||||||
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.
|
|
||||||
"""
|
|
||||||
|
|
||||||
path = ROOT_DIRECTORY / f'{csv_type}.csv'
|
path = ROOT_DIRECTORY / f'{csv_type}.csv'
|
||||||
|
|
||||||
bottle.response.content_type = 'application/json'
|
bottle.response.content_type = 'application/json'
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -66,11 +66,9 @@ def parse_version_file(text: str) -> str:
|
||||||
|
|
||||||
|
|
||||||
def find_python_packages() -> list[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)
|
root_path = Path(PACKAGE_NAME)
|
||||||
packages: set[str] = set([PACKAGE_NAME])
|
packages: set[str] = {PACKAGE_NAME}
|
||||||
|
|
||||||
# Search recursively
|
# Search recursively
|
||||||
for init_file in root_path.rglob('__init__.py'):
|
for init_file in root_path.rglob('__init__.py'):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user