Skip to content
This repository was archived by the owner on Mar 27, 2022. It is now read-only.

0.3.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 31 Jan 20:55
· 2 commits to main since this release

DEPRECATED - Use dprint-plugin-exec instead

This plugin is deprecated and won't receive updates anymore. You can still format with yapf via dprint's cli though (and with many other formatting CLIs)! See dprint-plugin-exec and search for yapf.

Install

Dependencies:

  1. Install python and ensure it's on the path.
  2. Install dprint's CLI >= 0.9.0

In dprint configuration file:

  1. Specify the plugin url and checksum in the "plugins" array:

    {
      // etc...
      "plugins": [
        "https://plugins.dprint.dev/yapf-0.3.0.exe-plugin@458d620aa209dd2aeb676d1bfdedac802cde8331b2de57fcdcec9cddfa1105de"
      ]
    }
  2. Ensure the py extension is matched in an "includes" pattern.

  3. Add a "yapf" configuration property if desired.

    {
      // ...etc...
      "yapf": {
        "based_on_style": "pep8",
        "spaces_before_comment": 4
      }
    }