Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`--benchmark` / `--statistics` don't play well with custom formatters or `--quiet`

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

まず --quiet、--statistics、--format=json、--benchmark を指定して 2 つの例を再現し、次に formatter が統計情報と benchmark の出力をどのように処理しているかを追跡します。カスタム formatter の出力が有効なままであり、--quiet が一貫して動作し、保持する場合はデフォルト formatter が引き続き統計情報と benchmark の結果を提供すれば完了です。

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

説明

while moving things around, I noticed that these options don't play nicely with formatters

for example:

$ flake8 --quiet --quiet t.py --statistics
1     F401 'os' imported but unused
$ flake8 --format=json --benchmark t.py; echo
{"t.py": [{"code": "F401", "filename": "t.py", "line_number": 1, "column_number": 1, "text": "'os' imported but unused", "physical_line": "import os\n"}]0.00914    seconds elapsed1          total logical lines processed109        logical lines processed per second1          total physical lines processed109        physical lines processed per second3          total tokens processed328        tokens processed per second1          total files processed109        files processed per second}

I think ideally the following happens: statistics / benchmarks are moved from the base formatter to the default formatter and are noops otherwise

perhaps even removing statistics / benchmark if they're not deemed useful enough

主要言語
Python
スター
3.8k
フォーク
363
平均マージ
3時間 59分
マージ済み PR(30日)
11

環境構築

はじめの一歩

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

PyCQA/flake8 のほかの issue

PyCQA/flake8 の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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