Forrest logo
back to context overview

yapf

List of commands for yapf:

  • yapf:tldr:16f6c yapf: Recursively format all Python files in a directory, concurrently.
    $ yapf --recursive --in-place --style ${pep8} --parallel ${path-to-directory}
    try on your machine
    explain this command
  • yapf:tldr:1a314 yapf: Format the file in-place and display a diff of the changes.
    $ yapf --diff --in-place ${filename}
    try on your machine
    explain this command
  • yapf:tldr:2a9ef yapf: Display a diff of the changes that would be made, without making them (dry-run).
    $ yapf --diff ${filename}
    try on your machine
    explain this command
back to context overview