Enforce single line `description`
edgarrmondragon opened this issue · 3 comments
edgarrmondragon commented
And maybe make it opt-in. This tool already strips whitespace from the field:
pyproject-fmt/src/pyproject_fmt/formatter/project.py
Lines 41 to 42 in bb60057
Related:
gaborbernat commented
I would be okay to accept a pull request in this direction.
henryiii commented
Would it make sense to turn this:
description = """A Machine learning library that models and predicts learner engagement
with educational resources."""
Into this:
description = "A Machine learning library that models and predicts learner engagement with educational resources."
Or this:
description = """A Machine learning library that models and predicts learner engagement\
with educational resources."""
? Both are fine IMO, though I prefer the first, as this isn't supposed to be a really long line (it's displayed on PyPI, etc).
More fun ones are ones like https://github.com/Abdel-RahmanSaied/mediaSecure/blob/caabcf86622a519a55a99f604d8dad60a27f94bc/pyproject.toml#L11-L47 :)
edgarrmondragon commented
I've started #184 with the first option above as the goal.