From 1c17a4e0b2e4a5b091f7222d2bcda95aa06d95b1 Mon Sep 17 00:00:00 2001 From: Peter Baumgartner Date: Sat, 10 Feb 2024 01:48:14 -0700 Subject: [PATCH] v4.0.1 whitespace fix in markdown --- CHANGES.rst | 5 +++++ README.rst | 4 ++-- goodconf/__init__.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 859f93f..0ee835b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,11 @@ Change Log ========== +4.0.1 (10 February 2024) +======================== + +- Fix trailing whitespace in markdown output + 4.0.0 (10 February 2024) ======================== diff --git a/README.rst b/README.rst index 711f0a0..bbd8266 100644 --- a/README.rst +++ b/README.rst @@ -203,5 +203,5 @@ Releasing a new version to PyPI: git push --tags rm -rf ./dist hatch build - hatch publish - gh release create v$VERSION dist/goodconf-$VERSION* --generate-notes --verify-tag \ No newline at end of file + hatch publish --user __token__ + gh release create v$VERSION dist/goodconf-$VERSION* --generate-notes --verify-tag diff --git a/goodconf/__init__.py b/goodconf/__init__.py index 1971677..093eb5e 100644 --- a/goodconf/__init__.py +++ b/goodconf/__init__.py @@ -252,7 +252,7 @@ def generate_markdown(cls) -> str: if cls.__doc__: lines.extend([f"# {cls.__doc__}", ""]) for k, v in cls.__fields__.items(): - lines.append(f"* **{k}** ") + lines.append(f"* **{k}**") if v.required: lines[-1] = lines[-1] + "_REQUIRED_" if v.field_info.description: