python / python/mypy

Specify filepath in `cobertura_xml_report`, instead of folder

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

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

feature
主要言語
Python
スター
20.6k
フォーク
3.3k
平均マージ
1日 18時間
マージ済み PR(30日)
54

説明

Feature

Currently, the cobertura_xml_report is used as folder path, in which mypy typically only produces a single file cobertura.xml.
I would like to be able to specify a direct output path of the xml file, without having additional folders produced.

Pitch

Using the xml report in a CI requires additional config to archive an extra folder, which is unneeded if a target file can be specified.
Even when specifying something like cobertura_xml_report = "mypy.xml", the output file is still mypy.xml/cobertura.xml.
A potential workaround --cobertura-xml-report=. is unsafe because mypy simply overwrites any cobertura.xml produced by any other tool.

If the use case is too different from the other reporting outputs which all use DIR, please consider allowing this option via toml config.
For instance, something like this:

[tool.mypy]
cobertura_xml_report = {file = "mypy.xml"}
html_report = {dir = "mypy"}

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず、mypy が cobertura_xml_report オプションをどのように処理し、他のレポート出力がパスをどのように解釈しているかを追跡します。要求された直接のファイルパスを、既存のフォルダーの動作および提案されている TOML のファイル/ディレクトリの区別と比較します。設定された XML ファイル名が追加のフォルダーなしで直接書き込まれ、既存のディレクトリの動作が明確かつ安全なままであれば完了です。

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

評価

技術スタック
python
領域
tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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