LinuxCommandLibrary

pyflakes

pyflakes

TLDR

Check a single Python file

$ pyflakes check [path/to/file].py
copy


Check Python files in a specific directory
$ pyflakes checkPath [path/to/directory]
copy


Check Python files in a directory recursively
$ pyflakes checkRecursive [path/to/directory]
copy


Check all Python files found in multiple directories
$ pyflakes iterSourceCode [path/to/directory_1] [path/to/directory_2]
copy

Help

usage: pyflakes [-h] [-V] [path ...] 

Check Python source files for errors 

positional arguments:
  path           Path(s) of Python file(s) to check. STDIN if not given. 

options:
  -h, --help     show this help message and exit 
  -V, --version  show program's version number and exit 

Copied to clipboard