Wrapper around yapf in order to use it as a dprint plugin.
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 dprint
- Follow instructions at https://github.com/dprint/dprint-plugin-yapf/releases/
See yapf's configuration here.
{
// ...etc...
"yapf": {
"based_on_style": "pep8",
"spaces_before_comment": 4
}
}