`mypy-status` is not very useful if it triggers `-x`/`--exitfirst`
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- testing-qa, tooling
調査の方向性
Reproduce the failure with pytest -s -vvv --mypy, focusing on tests/__init__.py::mypy-status, and compare it with mypy tests/__init__.py. Trace how the plugin reports mypy's status when pytest uses -x/--exitfirst; done means the status test no longer reports errors when the direct mypy check succeeds.
索引モデルが issue の本文から書いたものです。
説明
The mypy plugin here falls over, complains about errors, but there aren't any…
% pytest -s -vvv --mypy
===================================== test session starts =====================================
platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0 -- /home/madduck/code/tc/tptools/.direnv/python-3.13.3/bin/python3
cachedir: .pytest_cache
rootdir: /home/madduck/code/tc/tptools
configfile: pyproject.toml
testpaths: tests, integration
plugins: anyio-4.9.0, cov-6.1.1, devtools-0.12.2, asyncio-0.26.0, subtests-0.14.1, mypy-1.0.1
asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
collected 352 items
tests/__init__.py::mypy PASSED
tests/__init__.py::mypy-status FAILED
========================================== FAILURES ===========================================
________________________________________ test session _________________________________________
mypy exited with status 1.
-------------------------------------- Captured log call --------------------------------------
filelock DEBUG Attempting to acquire lock 140525569634576 on /home/madduck/.tmp/tmpw90y_v42.lock
filelock DEBUG Lock 140525569634576 acquired on /home/madduck/.tmp/tmpw90y_v42.lock
filelock DEBUG Attempting to release lock 140525569634576 on /home/madduck/.tmp/tmpw90y_v42.lock
filelock DEBUG Lock 140525569634576 released on /home/madduck/.tmp/tmpw90y_v42.lock
============================================ mypy =============================================
Found 4 errors in 1 file (checked 27 source files)
=================================== short test summary info ===================================
FAILED tests/__init__.py::mypy-status
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================= 1 failed, 1 passed in 0.81s =================================
However:
% mypy tests/__init__.py
Success: no issues found in 1 source file
% echo $?
0
- 主要言語
- Python
- スター
- 257
- フォーク
- 33
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
realpython/pytest-mypy のほかの issue
-
realpython/pytest-mypy#190 · コメント 1 件 · 担当者 1 名 ·
-
integration
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
realpython/pytest-mypy#160 · コメント 4 件 ·
-
integration
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
realpython/pytest-mypy#138 · コメント 2 件 · リアクション 2 件 ·
-
Expected mypy errors オープン
realpython/pytest-mypy#105 · コメント 4 件 · 担当者 1 名 ·
-
reporting
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
realpython/pytest-mypy#23 · コメント 1 件 · リアクション 2 件 ·
realpython/pytest-mypy の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
zostera/django-bootstrap4#894 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
use-agent-os/agent-os#3276 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
NousResearch/hermes-agent#117848 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
zilliztech/memsearch#759 ·