HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

yapf — Python style guide checker. More information: <https://github.com/google/yapf#usage>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandpythonstyleguidecheckerclimoreyapf

Problem

How to use the yapf command: Python style guide checker. More information: <https://github.com/google/yapf#usage>.

Solution

yapf — Python style guide checker. More information: <https://github.com/google/yapf#usage>.

Display a diff of the changes that would be made, without making them (dry-run):
yapf {{[-d|--diff]}} {{path/to/file}}


Recursively format all Python files in a directory, concurrently:
yapf {{[-ri|--recursive --in-place]}} --style {{pep8}} {{[-p|--parallel]}} {{path/to/directory}}

Code Snippets

Display a diff of the changes that would be made, without making them (dry-run)

yapf {{[-d|--diff]}} {{path/to/file}}

Recursively format all Python files in a directory, concurrently

yapf {{[-ri|--recursive --in-place]}} --style {{pep8}} {{[-p|--parallel]}} {{path/to/directory}}

Context

tldr-pages: common/yapf

Revisions (0)

No revisions yet.