docformatter fix does not consider parameters for added newlines
メンテナーはふだん 1 日以内に返信
@AtharvRG がすでに取り組んでいます。
2026年10月31日 から。
評価
調査の方向性
Reproduce the formatting with the configuration and command linked in setup.cfg and Makefile using docformatter v1.7.8, using the _publish_shapefile_request docstring as the example. Locate the logic that splits the summary and description and then inserts or indents parameter lines. Done means the description is followed by another newline and the :param entries retain their original indentation.
索引モデルが issue の本文から書いたものです。
説明
Given a sentence detected with a ., which gets split into summary/description (as it should), the result doesn't seem to check correctly if the newlines it introduces cause an invalid structure by placing the description right on top of some parameter description.
For some reason, it picks to indent the parameters, which is incorrect.
It should instead add another newline and leave the parameters as they were.
@geoserver_response_handling
def _publish_shapefile_request(self,
*,
workspace_name: str,
datastore_name: str,
filename: str,
) -> requests.Response:
"""
- Request to publish a shapefile in Geoserver. Does so by creating a `Feature type` in Geoserver.
+ Request to publish a shapefile in Geoserver.
- :param workspace_name: Workspace where file will be published
- :param datastore_name: Datastore where file will be published
- :param filename: Name of the shapefile (with no extensions)
- :returns: Response object
+ Does so by creating a `Feature type` in Geoserver.
+ :param workspace_name: Workspace where file will be published
+ :param datastore_name: Datastore where file will be published
+ :param filename: Name of the shapefile (with no extensions)
+ :returns: Response object
"""
...
using https://github.com/PyCQA/docformatter/releases/tag/v1.7.8
- 主要言語
- Python
- スター
- 600
- フォーク
- 107
- 平均マージ
- 22時間 15分
- マージ済み PR(30日)
- 12
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PyCQA/docformatter のほかの issue
-
`--docstring-length` removes blank line after docstrings it doesn't format (ping-pong with ruff format / Black)対応中かも @RClaudiuM が 1 日前に担当しました。 オープンfresh
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
PyCQA/docformatter#420 ·
メンテナーはふだん 1 日以内に返信
-
fresh
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
PyCQA/docformatter#414 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
BUG: Inconsistent behavior between `docformatter` and `black`再び着手できるかも @AtharvRG が 25 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンfresh
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
PyCQA/docformatter#399 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
1.7.8 crashes with a tokenize ValueError on a multi-line f-string inside parentheses再び着手できるかも @adityaanikam が 106 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンC: convention P: bug U: high
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
PyCQA/docformatter#367 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
1.7.8 rewrites the contents of a non-docstring triple-quoted string, silently changing its valueオープンC: convention P: bug U: high
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
PyCQA/docformatter#366 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
PyCQA/docformatter の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
NatLabRockies/openstudio-mcp#286 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
intersystems/ipm#1338 ·
メンテナーはふだん 1 日以内に返信
-
separate_packages splits imports from the same explicitly configured package対応中かも @rahul05ranjan が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
The v0-through-v1 path derives ShutdownDuration its own way, silently overriding a user's definitionオープンv1
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信