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

Cannot set MYPYPATH

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

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

評価

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

調査の方向性

READMEから始めて、プラグインがどのように mypy を呼び出し、プロジェクトルートの mypy.ini 設定を処理しているかを調べます。MYPYPATH または mypy_path が引き渡されているかを確認し、そのうえで --follow-imports silent を使用したときに、選択した設定が botocore.vendored などの import で機能することを確認します。

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

説明

Thanks for this plugin - it's nice to have this running constantly inside PyCharm.

There may be a way to do this, but it's not in the README as far as I could tell, so I thought I'd bring this up.

For those of us who want to use types that exist outside our current project, it is nice to be able to --follow-imports silent. However this just leads to handler.py:2: error: Cannot find module named 'botocore.vendored' or whatever the module is.

When running from the command line, I can just add my VENV site-packages dir to the environment variable MYPYPATH and everything works great. However I'm not sure how to usefully define an env var for this plugin. More importantly, it really needs to be something that the plugin can figure out based on some kind of config file, e.g. the mypy.ini config file in the project root. However, setting mypy_path inside that config file does not seem to get picked up by this plugin.

Any thoughts on how to make this work properly?

主要言語
Java
スター
319
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

dropbox/mypy-PyCharm-plugin のほかの issue

dropbox/mypy-PyCharm-plugin の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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