`--no-incremental` still writes `.mypy_cache`
オープン
まだ誰も着手していません。
bug
documentation
topic-configuration
topic-incremental
- 主要言語
- Python
- スター
- 20.6k
- フォーク
- 3.3k
- PR マージ指標
- PR 指標を取得中
説明
Bug Report
the help seems to indicate a cache will not be produced with --no-incremental:
$ mypy --help | grep -A2 no-inc
--no-incremental Disable module cache (inverse: --incremental)
--cache-dir DIR Store module cache info in the given folder in
incremental mode (defaults to '.mypy_cache')
a workaround is --cache-dir /dev/null though this isn't super portable
To Reproduce
print(1)
rm -rf .mypy_cache
mypy t.py --no-incremental
ls -ald .mypy_cache
Expected Behavior
$ rm -rf .mypy_cache
$ mypy t.py --no-incremental
Success: no issues found in 1 source file
$ ls -ald .mypy_cache
ls: cannot access '.mypy_cache': No such file or directory
Actual Behavior
$ rm -rf .mypy_cache
$ mypy t.py --no-incremental
Success: no issues found in 1 source file
$ ls -ald .mypy_cache
drwxr-xr-x 5 asottile wheel 160 Jul 22 07:36 .mypy_cache
Your Environment
- Mypy version used: 1.17.0
- Mypy command-line flags:
--no-incremental - Mypy configuration options from
mypy.ini(and other config files): n/a - Python version used:
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
.mypy_cache を削除した後、提供された再現手順 mypy t.py --no-incremental を実行し、--no-incremental と --cache-dir に関連するコマンドライン処理とキャッシュの動作を調査します。コマンドが .mypy_cache を作成せずに引き続き成功を報告し、インクリメンタルモードには影響がないことを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100