Home

Awesome

Flake8 print plugin

Check for Print statements in python files.

This module provides a plugin for flake8, the Python code checker.

Installation

You can install or upgrade flake8-print with these commands::

$ pip install flake8-print $ pip install --upgrade flake8-print

Plugin for Flake8

When both flake8 2.4.1 and flake8-print are installed, the plugin is available in flake8::

$ flake8 --version
2.4.1 (pep8: 1.5.7, flake8-print: 2.0.0, mccabe: 0.3.1, pyflakes: 0.8.1)

Flake8 allows disabling some tests based on the folder:

[flake8]
per-file-ignores =
    scripts/*: T20
    cli.py: T20

Error codes

Error CodeDescription
T201print found
T203pprint found
T204pprint declared

Changes

5.0.0 - 2022-04-30
4.0.1 - 2022-04-30
4.0.0 - 2020-11-29
3.1.4 - 2019-1-11
3.1.3 - 2019-31-10
3.1.1 - 2019-03-12
3.1.0 - 2018-02-11
3.0.1 - 2017-11-06
3.0.0 - 2017-11-05
2.0.2 - 2016-02-29
2.0.1 - 2015-11-21
2.0 - 2015-11-10
1.6.1 - 2015-05-22
1.6 - 2015-05-18
1.5 - 2014-11-04
1.4 - 2014-10-06
1.3 - 2014-09-27
1.2 - 2014-06-30
1.1 - 2014-06-30
1.0 - 2014-06-30