YAPF3(1)
π YAPF3 β like, the Python code formatter, bestie
okay so real talk: this is the manual page for yapf3, from the General Commands Manual section of your friendly neighbourhood man pages. She's a Python code formatter, she's for Python 3, and she is so ready to make your code look cute. π
β¨ NAME β¨
yapf3 β Python code formatter πβ¨
πΈ SYNOPSIS πΈ
yapf3 [-h] [-v] [-d | -i] [-r | -l START-END] [-e PATTERN] [--style
STYLE] [--style-help] [--no-local-style] [files [files ...]]
π¦ DESCRIPTION π¦
yapf3 is a Python code formatter for Python 3. That's it, that's the whole description. She formats. She's for Python 3. She ate. π
π OPTIONS π
-h,--helpβ shows this help message and then dips. π«Ά-v,--versionβ shows the version number and exits. iconic behaviour honestly.-d,--diffβ prints the diff for the fixed source, so you can see exactly what she'd change before you commit to anything. no cap. π₯-i,--in-placeβ actually makes the changes to files, in place. this one edits your files for real, so vibe check before you run it bestie. π-r,--recursiveβ runs recursively over directories. she goes deep. π-l START-END,--lines START-ENDβ reformats a range of lines. one-based, so line 1 is line 1, we're not doing that zero-index nonsense here. β¨-e PATTERN,--exclude PATTERNβ patterns for files to exclude from formatting. i.e. the files you're like "not her, leave her alone". π--style STYLEβ specify the formatting style: either a style name (for example"pep8"or"google"), or the name of a file with style settings. the default ispep8unless a.style.yapf3orsetup.cfgfile located in one of the parent directories of the source file (or the current directory for stdin). π--style-helpβ shows the style settings and exits. little peek behind the curtain. π--no-local-styleβ don't search for a local style definition (.style.yapf3). she'll mind her own business, respectfully. π
[--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/. go read it, it's giving documentation, it's giving lore. πβ¨
okay bestie that's a wrap π
this page lives in the General Commands Manual, and the footer energy was dated September 2016 with the source line trailing off like Usage: yapf3 [-h [-v] [-d | -... β so yeah, she's been slaying since 2016 and she's not stopping. periodt. π©·πΈπ¦π
π¦ where this page comes from
- debian bookworm: yapf3 0.32.0-1 Β· Apache-2.0
- debian trixie: yapf3 0.40.2-3 Β· Apache-2.0
- ubuntu jammy: yapf3 0.32.0-1 Β· Apache-2.0
- ubuntu noble: yapf3 0.33.0-1 Β· Apache-2.0
- ubuntu questing: yapf3 0.40.2-3
- ubuntu resolute: yapf3 0.43.0-1 Β· Apache-2.0
- ubuntu stonking: yapf3 0.43.0-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms