Scroll to navigation

YAPF(1) General Commands Manual YAPF(1)

NAME

yapf - Python code formatter

SYNOPSIS

yapf [-h] [-v] [-d | -i] [-r | -l START-END] [-e PATTERN] [--style STYLE] [--style-help] [--no-local-style] [files [files ...]]

DESCRIPTION

yapf is a Python code formatter for Python 2.

OPTIONS

show this help message and exit
show version number and exit
print the diff for the fixed source
make changes to files in place
run recursively over directories
range of lines to reformat, one-based
patterns for files to exclude from formatting
specify formatting style: either a style name (for example "pep8" or "google"), or the name of a file with style settings. The default is pep8 unless a .style.yapf or setup.cfg file located in one of the parent directories of the source file (or current directory for stdin)
show style settings and exit
don't search for local style definition (.style.yapf)
[--style STYLE] [--style-help] [--no-local-style] [files [files ...]]

SEE ALSO

Usage examples along with detailed information on configuring formatting style can be found at https://github.com/google/yapf/.

November 2017 Usage: yapf [-h] [-v] [-d | -i] [-r | -l START-END] [-e PATTERN]