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 is pep8 unless a .style.yapf3 or setup.cfg file 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. πŸ©·πŸŒΈπŸ¦‹πŸ’–