Shorter section underlines trigger ambiguous validation

オープン
#460 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

まずdocstringの例を再現し、リンク先のnumpydoc検証ドキュメントに記載されている検証チェックを確認します。形式不正なセクション下線がどのように報告されるかを追跡し、その後、パラメータドキュメントのエラーとは明確に区別して識別されるようにテストカバレッジを追加し、結果として得られる検証メッセージを確認します。

索引モデルが issue の本文から書いたものです。

説明

While testing #454 I noticed that for the following docstring,

    """Bad, bad docstring!

    Parameters
    ---------
    x : `int`
    y:
        Another variable.

    Returns
    -------
    z : `int`
        The sum of ``x`` and ``y``.
    """

which contains many issues, but the issue of the shorter underline triggers a rather misterious
PR01 | Parameters {'x', 'y'} not documented.

In fact, after adding the missing dash I get the next issues, PR01, PR02, PR07 and PR10.

From the list of available validation checks the shorter underline problem is not present, I guess because it's more an RsT issue, but since numpydoc uses RsT (unless I overlooked this), I think it should be a proper validation check.

主要言語
Python
スター
354
フォーク
185
平均マージ
4分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

numpy/numpydoc のほかの issue

numpy/numpydoc の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。