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

Releases: dprint/dprint-plugin-yapf

0.3.0

31 Jan 20:55
Compare
Choose a tag to compare

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
      }
    }

0.2.1

31 Jan 20:46
Compare
Choose a tag to compare

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.2.1.exe-plugin@5f9e484ae7ee913ff7a9bf37e956fc13f0126732e272bbf64cf91936b05a4cee"
      ]
    }
  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
      }
    }

0.2.0

23 Nov 01:19
Compare
Choose a tag to compare

Install

Requires dprint >= 0.10.0.

Dependencies:

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

In dprint.json:

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

    {
      // etc...
      "plugins": [
        "https://plugins.dprint.dev/yapf-0.2.0.exe-plugin@14c42b703709e81f813c6674a8110c522af0ea78b6298f4f73721121a1a03701"
      ]
    }
  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
      }
    }

0.1.1

19 Aug 01:34
Compare
Choose a tag to compare

Install

Dependencies:

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

In .dprintrc.json:

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

    {
      // etc...
      "plugins": [
        "https://plugins.dprint.dev/yapf-0.1.1.exe-plugin@7550683e5f8b76c4825eec5cf88b5dcbd043ade4019c60d79e989e1e7fb6f4d8"
      ]
    }
  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
      }
    }

0.1.0

14 Aug 19:11
Compare
Choose a tag to compare

Install

Dependencies:

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

In .dprintrc.json:

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

    {
      // etc...
      "plugins": [
        "https://plugins.dprint.dev/yapf-0.1.0.exe-plugin@ec45d2523526ae6c350a7320cf3c76b78474d358e3e58ace008774aee31d45e1"
      ]
    }
  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
      }
    }