diffplug / diffplug/spotless

Better method for managing python black package

オープン
#674 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Java
スター
5.6k
フォーク
559
平均マージ
1日 14時間
マージ済み PR(30日)
43

説明

We are able to call `black` by shelling out to it on the system path, and we are able to cache its results by enforcing a version check on the binary. However, if it isn't on the path, or the version is wrong, we just show a helpful error message and let the user figure it out from there:

https://github.com/diffplug/spotless/blob/608e128381c89260f8a38fba985415c1f962ec7b/lib/src/main/java/com/diffplug/spotless/python/BlackStep.java#L65-L66

It would be nice if we could handle this better, or at least have better instructions. There are a few python plugins in the gradle ecosystem, I'll reach out to them to see if they are interested.

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

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

調査の方向性

リンク先の行にある BlackStep.java から始めて、現在のシステムパスの検索、バージョンチェック、エラーメッセージを理解してください。アプローチを選ぶ前に、言及されている Gradle Python plugins を確認してください。未インストールまたは互換性のない Black のインストールがより適切に処理されるか、より明確な手順が示されれば完了です。

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

評価

技術スタック
java, python
領域
build-system, tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

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

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