Skip to main content

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)

Error codes

Error Code | Description |
———– | ———————————— |
T001 | print found |
T002 | Python 2.x reserved word print used |
T003 | pprint found |
T004 | pprint declared |

Changes

##### 3.1.4 - 2019-1-11

  • Fix bug introduced in 3.1.3

  • Support for nopep8 comments

##### 3.1.3 - 2019-31-10

  • Swapped back from poetry to setup.py :(….python ecosystem issues….

  • single function refactor code

##### 3.1.1 - 2019-03-12

  • Fix reading from stdin when it is closed (requires flake8 > 2.1).

  • Add error codes to ReadMe.

  • Swapped to poetry from setup.py

  • Ran black on the repository

##### 3.1.0 - 2018-02-11 * Add a framework classifier for use in pypi.org * Fix entry_point in setup.py leaving it off by default again.

##### 3.0.1 - 2017-11-06 * Fix conflict in setup.py leaving it off by default again. * Fix bug in name code.

##### 3.0.0 - 2017-11-05 * Remove some of the python 2/3 message differentiation. * Use an AST rather than a logical line checker with a regex. * pprint support. * Loss of multiline noqa support, until there is a way to use both the AST and have flake8 provide the noqa lines.

##### 2.0.2 - 2016-02-29 * Fix ReadMe for pipy * Refactor, DRY it up. * Update python 2 vs python 3 print statement styles.

##### 2.0.1 - 2015-11-21 * Add back the decorator to fix the flake8 –version call.

##### 2.0 - 2015-11-10 * Support noqa at end of multiline print statement * Performance improvements * Removed PrintStatementChecker class and other functions * Added T101 for ‘Python 2.x reserved word print used.’ * Added testing for Python 3.3 and 3.5, and different flake8 versions

##### 1.6.1 - 2015-05-22 * Fix bug introduced in 1.6.

##### 1.6 - 2015-05-18 * Added proper support for python3 and testing for python 2.6, 2.7 and 3.4

##### 1.5 - 2014-11-04 * Added python2.6 support. Thanks @zoidbergwill

##### 1.4 - 2014-10-06 * Apped noqa support

##### 1.3 - 2014-09-27 * Dropped noqa support * Support for multiline comments and less false positives

##### 1.2 - 2014-06-30 * Does not catch the word print in single line strings * Does not catch inline comments with print in it * Added tests

##### 1.1 - 2014-06-30 * First release

##### 1.0 - 2014-06-30 * Whoops

Release files for flake8-print-clean 3.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-print-clean 3.1.4
File Size Uploaded
flake8-print-clean-3.1.4.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-print-clean 3.1.4
File Interpreter ABI Platform
flake8_print_clean-3.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / flake8-print-clean-3.1.4.tar.gz

Download URL flake8-print-clean-3.1.4.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bc72ee231dfab17d9b7fb48dead993c5c8f7882665627deca7a4bd088191bc69
BLAKE2b-256 checksum
How to use checksums
bf80253c94cb5912b207e5eac65552f593e980e2ac57aa1e1dcf082678526631
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release files / flake8_print_clean-3.1.4-py3-none-any.whl

Download URL flake8_print_clean-3.1.4-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b2a0095a9e47389bf5a300ec2b7694a67c21c4f2c7017ab3c34366694da4ffb
BLAKE2b-256 checksum
How to use checksums
c00bd5e13d8261d20eb225096f9d1737b45cdaca4a8d89e5389137344246ea81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

3.1.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page