0.800: Unable to configure subdirectories
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 20.6k
- フォーク
- 3.3k
- PR マージ指標
- PR 指標を取得中
説明
In Mypy 0.800, it now checks files in subdirectories without __init__.py files.
The problem is that the config still only works on modules containing __init__.py, meaning there is no way to change the config for these subdirectories.
e.g.
untyped-def errors have started appearing in test/foo/bar.py
Adding this to config has no effect:
[mypy-tests.*]
disallow_untyped_defs = False
This only works if tests/__init__.py and tests/foo/__init__.py are created.
Expected behaviour is that the above config will ignore the errors, or an alternative syntax is available to do so (e.g. [mypy-tests/*].
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
tests/foo/bar.py と disallow_untyped_defs = False を含む [mypy-tests.*] 設定で問題を再現します。設定セクションが init.py ファイルのないサブディレクトリにどのように対応するかを追跡します。既存の構文が適用されるか、代替構文がサポートされ、この例に対して検証されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100