PYFLAKES3(1)

πŸ“¦
version 3.1.0 Β· 2 versions
, in epel 10, fedora 43, fedora 44

✨ PYFLAKES3 ✨

okay bestie, so this is the manual page for pyflakes3 β€” that's the Python 3 source checker, and it lives in section 1 of the manual (iykyk πŸ’…). let's get into it.


🌸 NAME 🌸

pyflakes3 β€” a simple Python 3 source checker 🐍✨


πŸŽ€ SYNOPSIS πŸŽ€

pyflakes [file-or-directory ...]

πŸ’– DESCRIPTION πŸ’–

so pyflakes3 is literally a simple little program that checks your Python source files for errors. that's it, that's the whole job. no cap. πŸ”₯

it's similar to PyChecker in scope, but here's the plot twist: it does not execute the modules to check them. not even a little. and honestly? that's both safer and faster πŸ¦‹ β€” the tradeoff being that it doesn't perform as many checks. pick your fighter, bestie.

and unlike PyLint, Pyflakes checks only for logical errors in programs. it does not perform any checks on style. zero. none. it is not here to read you for your spacing, it's here to catch actual problems. main character energy only. πŸ‘‘

okay so, the arguments:

  • all commandline arguments get checked, and they have to be either regular files or directories
  • if you hand it a directory, every .py file within it will be checked πŸ—‚οΈ
  • and if you give it no commandline arguments at all? it just reads data from standard input. comfy. 🫢

πŸ”₯ OUTPUT πŸ”₯

here's where stuff goes, and it matters, so listen up:

  • found warnings β€” the ones like unused imports, undefined variables and unnecessary reimports β€” get printed on standard output ✨
  • found errors β€” the ones like compile or encoding errors β€” get printed on standard error πŸ’€

so if you're piping things around, don't be shocked when your error messages don't show up where you expected. they went to stderr. as they should. periodt.


⭐ EXIT STATUS ⭐

  • the exit status is 0 when no warnings or errors are found 🌈
  • otherwise the exit status is 1 πŸ’…

so like, 0 = clean, 1 = something's up. that's the vibe check right there.


πŸ’œ AUTHOR πŸ’œ

this manual page was originally written by Bastian Kleineidam <calvin@debian.org> for the Debian distribution of pyflakes β€” but it can be used by others too 🫢. iconic of him honestly.


and that's the whole thing! this page is from 10/01/2007, and it's the PYFLAKES3(1) page, source and all β€” so go forth and let pyflakes3 tell you what's wrong with your code, bestie. slay πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from