python / python/mypy

Enable only a few error codes

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

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

feature needs discussion priority-1-normal topic-configuration
主要言語
Python
スター
20.6k
フォーク
3.3k
PR マージ指標
PR 指標を取得中

説明

  • Are you reporting a bug, or opening a feature request?
    Feature request

I think one of the largest problems with static analyzers is dealing with legacy code. Mypy has a nice documentation about it https://mypy.readthedocs.io/en/latest/existing_code.html

However, what I'm missing is a way to only enable a few checks. In this way I can start by only enabling the most critical checks (eg. name-defined).

As an example, in pylint you can configure the list of checks at the config file, or do --disable=all --enable=check1,check2
http://pylint.pycqa.org/en/latest/user_guide/run.html#command-line-options

thank you guys for this awesome project!

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

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

はじめの一歩

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

調査の方向性

まず mypy の設定とエラーコードの処理を読み、要求されている allowlist の動作を既存のオプションと比較します。設定またはコマンドラインから、name-defined のようなケースを含む選択したチェックだけをユーザーが有効にでき、ドキュメントとテストでその動作がカバーされていれば完了です。

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

評価

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

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

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