Add mypy excludes for collect_ignore entries
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- testing-qa
調査の方向性
Read the linked conftest.py to understand the collect_ignore entry, then reproduce the mypy-status failure in pytest-mypy using the reported example. Trace how ignored files are selected for mypy and verify that the ignored file is no longer checked while other sources still are.
索引モデルが issue の本文から書いたものです。
説明
The jaraco.site project has a file in the tree that's ignored for tests.
However, even with that configuration, the file gets collected and is run by mypy and causes tests to fail:
__________________________________________________________________ test session ___________________________________________________________________
mypy exited with status 1.
...
====================================================================== mypy =======================================================================
jaraco/site/projecthoneypot/croakysteel.py:528: error: "Callable[[Any, Any, Any, Any], Any]" has no attribute "getSettings" [attr-defined]
jaraco/site/projecthoneypot/croakysteel.py:529: error: "Callable[[Any, Any, Any, Any], Any]" has no attribute "makeHTML" [attr-defined]
jaraco/site/projecthoneypot/croakysteel.py:533: error: "Callable[[Any, Any, Any, Any], Any]" not callable [operator]
Found 3 errors in 1 file (checked 11 source files)
============================================================= short test summary info =============================================================
FAILED conftest.py::mypy-status
============================================== 1 failed, 25 passed, 10 skipped, 3 warnings in 5.09s ===============================================
py: exit 1 (5.43 seconds) /Users/jaraco/code/jaraco/jaraco.site> pytest pid=33733
Is there a way that pytest-mypy can honor collect_ignore?
- 主要言語
- Python
- スター
- 257
- フォーク
- 33
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
realpython/pytest-mypy のほかの issue
-
integration
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
realpython/pytest-mypy#196 · コメント 2 件 ·
-
VS Code Support for pytest-mypy再び着手できるかも @eleanorjboyd が 485 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
realpython/pytest-mypy#190 · コメント 1 件 · 担当者 1 名 ·
-
integration
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
realpython/pytest-mypy#138 · コメント 2 件 · リアクション 2 件 ·
-
Expected mypy errors再び着手できるかも @dcbaker が 717 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
realpython/pytest-mypy#105 · コメント 4 件 · 担当者 1 名 ·
-
reporting
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
realpython/pytest-mypy#23 · コメント 1 件 · リアクション 2 件 ·
realpython/pytest-mypy の issue をすべて見る
似ている issue
-
needs-human needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
gke-labs/kube-agents#2400 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Device Details tables: FS/SF columns contradict each other (nfet_01v8 Vt row, pfet_01v8 Idsat row)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
google/skywater-pdk#450 ·
-
Drained trajectory arrays are overwritten when the sequence buffer is reused対応中かも @sylvesterkaczmarek が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
google-deepmind/bsuite#56 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
LearningCircuit/local-deep-research#7206 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
chingu-voyages/V62-tier3-team-33#285 ·
メンテナーはふだん 1 日以内に返信