There was an error while loading. Please reload this page.
pip install yapf
Create a file called .style.yapf where you can define some settings. We use for now:
.style.yapf
[style] based_on_style = pep8 column_limit = 120
Create a file called .yapfignore where you can (similarly to .gitignore) set folders or files that should be excluded:
.yapfignore
docs/** docsource/**
Just do the following in the root directoy:
yapf -rip .
where -r is for recursive mode, -i is for in-place, i.e. that the files are overwritten and -p is for parallel, so that it runs much faster.
-r
-i
-p
If you want to see which files have been changed, you can also add -vv as an extra argument for verbose mode.
-vv