python3-pyflakes [file-or-directory ...]
python3-pyflakes is a simple program which checks Python source files for errors. It is similar to PyChecker in scope, but differs in that it does not execute the modules to check them. This is both safer and faster, although it does not perform as many checks. Unlike PyLint, Pyflakes checks only for logical errors in programs; it does not perform any checks on style.
All commandline arguments are checked, which have to be either regular files or directories. If a directory is given, every .py file within will be checked.
When no commandline arguments are given, data will be read from standard input.
Found warnings including unused imports, undefined variables and unnecessary reimports, are printed on standard output. Found errors including compile or encoding errors, are printed on standard error.
The exit status is 0 when no warnings or errors are found. Otherwise the exit status is 1.
This manual page was originally written by Bastian Kleineidam <email@example.com> for the Debian distribution of pyflakes (but can be used by others).
The man pages pyflakes(1) and pyflakes-3(1) are aliases of pyflakes-3.11(1).