print statement checker plugin for flake8
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install flake8-printFlake8 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 Code | Description |
|---|---|
| T201 | print found |
| T203 | pprint found |
| T204 | pprint declared |
Changes
5.0.0 - 2022-04-30
- Move namespace from T0* to T2* to avoid collision with other library using same error code.
- Remove python 2 specific code paths, error messages and six usage.
4.0.1 - 2022-04-30
- Fixing bug with noqa detection by removing manual detection and relying on flake8 itself.
4.0.0 - 2020-11-29
- Opted back into using Poetry now that the existing issues have been fixed.
- Python 2.7 support was now officially dropped.
3.1.4 - 2019-1-11
- Fix bug introduced in 3.1.3
- Support for
nopep8comments
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.