LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pyflakes

Fast static error checker for Python

TLDR

Check a Python file for errors
$ pyflakes [file.py]
copy
Check multiple files
$ pyflakes [file1.py] [file2.py]
copy
Check from stdin
$ cat [file.py] | pyflakes
copy
Check a directory recursively
$ pyflakes [path/to/directory]
copy

SYNOPSIS

pyflakes [options] [filesordirectories]

DESCRIPTION

pyflakes is a fast, lightweight static analysis tool that checks Python source files for common errors without executing them. It detects issues like undefined names, unused imports, redefined variables, and other logical mistakes that would cause runtime failures.Unlike pylint or flake8, pyflakes focuses exclusively on error detection and does not check code style or formatting. This narrow scope makes it significantly faster and produces no false positives for stylistic choices, making it well-suited for integration into editors and pre-commit hooks where speed matters.

PARAMETERS

FILES

Python files or directories to check
--version
Show program version and exit
-h, --help
Show help message and exit

INSTALL

sudo apk add py3-pyflakes
copy

CAVEATS

Only checks for logical errors, not code style or formatting. Does not support configuration files for rule customization. Often used as a component within flake8 rather than standalone.

HISTORY

Pyflakes was created by Divmod for fast static analysis of Python code. It is now maintained by the PyCQA (Python Code Quality Authority) organization.

SEE ALSO

pylint(1), flake8(1), mypy(1), ruff(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid