make a style configuration alias compatible with isort & black?

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
tooling

調査の方向性

まず、Emacs から使用される importmagic の import 再フォーマット用エントリーポイントを見つけ、代表的なプロジェクトでその出力を isort および black と比較します。スタイル設定のエイリアスに互換性があり、結果として得られる import がそれらのフォーマッタによる書き換えを必要としなくなれば完了です。issue にはファイルもテストも指定されていないため、まず両方を見つける必要があります。

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

説明

I am using importmagic with emacs, and thank you for writing this library and allowing me to gradually flee the slowly crumbling edifice of Pymacs and Rope. (No disrespect to to the maintainers of those venerable libraries, I hope that they get the upgrades that they need, but as a user they've been lagging somewhat and I don't have the energy to invest to maintain them myself.)

However, when importmagic reformats my imports it does the wrong thing on projects that already have auto-formatting with isort and black. This isn't a big deal, as CI and commit hooks catch the problems and fix them up, but it would be nice for everything to happen automatically.

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

環境構築

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

はじめの一歩

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

alecthomas/importmagic のほかの issue

alecthomas/importmagic の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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