HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pyflakes — Check Python source code files for errors. More information: <https://pypi.org/project/pyflakes>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfilespyflakespythonsourceclicodecheck

Problem

How to use the pyflakes command: Check Python source code files for errors. More information: <https://pypi.org/project/pyflakes>.

Solution

pyflakes — Check Python source code files for errors. More information: <https://pypi.org/project/pyflakes>.

Check a single Python file:
pyflakes check {{path/to/file.py}}


Check Python files in a specific directory:
pyflakes checkPath {{path/to/directory}}


Check Python files in a directory recursively:
pyflakes checkRecursive {{path/to/directory}}


Check all Python files found in multiple directories:
pyflakes iterSourceCode {{path/to/directory_1 path/to/directory_2 ...}}

Code Snippets

Check a single Python file

pyflakes check {{path/to/file.py}}

Check Python files in a specific directory

pyflakes checkPath {{path/to/directory}}

Check Python files in a directory recursively

pyflakes checkRecursive {{path/to/directory}}

Check all Python files found in multiple directories

pyflakes iterSourceCode {{path/to/directory_1 path/to/directory_2 ...}}

Context

tldr-pages: common/pyflakes

Revisions (0)

No revisions yet.