This repository was archived by the owner on Mar 27, 2022. It is now read-only.
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: -
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 } }