python / python/mypy

Put the .mypy_cache directory near the project configuration file instead of at the current working directory

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

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

feature
主要言語
Python
スター
20.6k
フォーク
3.3k
PR マージ指標
PR 指標を取得中

説明

Feature

If there is a project configuration file (pyproject.toml, mypy.ini etc), make the default .mypy_cache directory be near the configuration file instead of at the current working directory.

Pitch

Currently, the .mypy_cache directory is created by default in the current working directory. I was very surprised to find this. It means that I probably have many .mypy_cache directories hanging around in unexpected places, possibly in unrelated projects. It also means that I had to wait for the cache to be rebuilt when there was a perfectly good cache sitting elsewhere.

I think that when there is a notion of a project, the .mypy_cache directory should be at the root of the project. So, when mypy uses a project configuration file, I think that since there is an obvious project directory, the .mypy_cache directory should be there.

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

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

はじめの一歩

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

調査の方向性

まず、mypy によるプロジェクト設定の検出処理と、.mypy_cache のデフォルトの場所を選択するコードを追跡します。pyproject.toml、mypy.ini、および関連する設定ファイルがどのようにプロジェクトディレクトリを確立するかを確認し、そのうえで、設定済みの実行とカレントワーキングディレクトリからの実行に対する動作を定義してテストします。

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

評価

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

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

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