Releases: dprint/dprint-plugin-yapf
0.3.0
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:
- Install python and ensure it's on the path.
- Install dprint's CLI >= 0.9.0
In dprint configuration file:
-
Specify the plugin url and checksum in the
"plugins"
array:{ // etc... "plugins": [ "https://plugins.dprint.dev/yapf-0.3.0.exe-plugin@458d620aa209dd2aeb676d1bfdedac802cde8331b2de57fcdcec9cddfa1105de" ] }
-
Ensure the
py
extension is matched in an"includes"
pattern. -
Add a
"yapf"
configuration property if desired.{ // ...etc... "yapf": { "based_on_style": "pep8", "spaces_before_comment": 4 } }
0.2.1
Install
Dependencies:
- Install python and ensure it's on the path.
- Install dprint's CLI >= 0.9.0
In dprint configuration file:
-
Specify the plugin url and checksum in the
"plugins"
array:{ // etc... "plugins": [ "https://plugins.dprint.dev/yapf-0.2.1.exe-plugin@5f9e484ae7ee913ff7a9bf37e956fc13f0126732e272bbf64cf91936b05a4cee" ] }
-
Ensure the
py
extension is matched in an"includes"
pattern. -
Add a
"yapf"
configuration property if desired.{ // ...etc... "yapf": { "based_on_style": "pep8", "spaces_before_comment": 4 } }
0.2.0
Install
Requires dprint >= 0.10.0.
Dependencies:
- Install python and ensure it's on the path.
- Install dprint's CLI >= 0.10.0
In dprint.json:
-
Specify the plugin url and checksum in the
"plugins"
array:{ // etc... "plugins": [ "https://plugins.dprint.dev/yapf-0.2.0.exe-plugin@14c42b703709e81f813c6674a8110c522af0ea78b6298f4f73721121a1a03701" ] }
-
Ensure the
py
extension is matched in an"includes"
pattern. -
Add a
"yapf"
configuration property if desired.{ // ...etc... "yapf": { "based_on_style": "pep8", "spaces_before_comment": 4 } }
0.1.1
Install
Dependencies:
- Install python ensure it's on the path.
- Install dprint's CLI >= 0.9.0
In .dprintrc.json:
-
Specify the plugin url and checksum in the
"plugins"
array:{ // etc... "plugins": [ "https://plugins.dprint.dev/yapf-0.1.1.exe-plugin@7550683e5f8b76c4825eec5cf88b5dcbd043ade4019c60d79e989e1e7fb6f4d8" ] }
-
Ensure the
py
extension is matched in an"includes"
pattern. -
Add a
"yapf"
configuration property if desired.{ // ...etc... "yapf": { "based_on_style": "pep8", "spaces_before_comment": 4 } }
0.1.0
Install
Dependencies:
- Install python and pip and ensure they're on the path.
- Install dprint's CLI >= 0.9.0
In .dprintrc.json:
-
Specify the plugin url and checksum in the
"plugins"
array:{ // etc... "plugins": [ "https://plugins.dprint.dev/yapf-0.1.0.exe-plugin@ec45d2523526ae6c350a7320cf3c76b78474d358e3e58ace008774aee31d45e1" ] }
-
Ensure the
py
extension is matched in an"includes"
pattern. -
Add a
"yapf"
configuration property if desired.{ // ...etc... "yapf": { "based_on_style": "pep8", "spaces_before_comment": 4 } }