YAPF plugin for Jetbrains IDEs.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 37c1b06 Sep 5, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources/META-INF Fix problems Sep 5, 2018
src/me/chaerim/yapf Fix problems Sep 5, 2018
.gitignore Initial commit Jul 24, 2018
.scalafmt.conf Initial commit Jul 24, 2018
LICENSE Initial commit Jul 24, 2018
README.md Initial commit Jul 24, 2018
yapf.iml Initial commit Jul 24, 2018

README.md

yapf

YAPF plugin for Jetbrains IDEs.

Getting Started

Prerequisites

  • You should install YAPF before using this plugin.
  • You should know the path of YAPF executable.

Installing

  • Find YAPF in Preferences > Plugins > `Browse Repositories' on your Jetbrains IDE.
  • Install it!

Setting

You can set following settings in Preferences > YAPF.

  • Format on save
  • YAPF executable path (default: /usr/local/bin/yapf)
  • YAPF style file name (default: .style.yapf)

Note that this plugin passes style file to YAPF in the following order:

  1. PROJECT_ROOT/[style_file_name]
  2. VERSION_CONTROL_SYSTEM_ROOT/[style_file_name]
  3. PROJECT_ROOT/.style.yapf
  4. VERSION_CONTROL_SYSTEM_ROOT/.style.yapf
  5. No style option

TODO

  • Write unit tests

License

This project is licensed under the MIT License.