Skip to content

Whitespace normalisation breaks .ext in description text #270

@hugovk

Description

@hugovk

Starting with pyproject-fmt, it normalises descriptions like this :

diff --git a/pyproject.toml b/pyproject.toml
index 3dde08c..3c6ecc2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -7,7 +7,7 @@ requires = [
 
 [project]
 name = "sphinx-lint"
-description = "Check for stylistic and formal issues in .rst and .py files included in the documentation."
+description = "Check for stylistic and formal issues in.rst and.py files included in the documentation."
 readme = "README.md"
 license = { text = "PSF License" }
 authors = [

This is currently preventing upgrading pyproject-fmt in Sphinx Lint.

Here's some other example descriptions it may affect:

clr_loader-0.2.6/pyproject.toml
7:description = "Generic pure Python loader for .NET runtimes"

python-docx-1.1.0/pyproject.toml
28:description = "Create, read, and update Microsoft Word .docx files."

pytoolconfig-1.3.1/tests/configfiles/pyproject.toml
73:description = run profiler (use e.g. `firefox .tox/prof/output.svg` to open)

unlzw3-0.2.2/pyproject.toml
9:description = "Pure Python decompression module for .Z files compressed using Unix compress utility"

flake8_pyi-24.1.0/pyproject.toml
18:description = "A plugin for flake8 to enable linting .pyi stub files."

tomli-2.0.1/pyproject.toml
63:description = run profiler (use e.g. `firefox .tox/prof/combined.svg` to open)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions