Check for Print statements in python files.
This module provides a plugin for flake8
, the Python code checker.
You can install or upgrade flake8-print
with these commands:
$ pip install flake8-print
$ pip install --upgrade flake8-print
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)
- Add a framework classifier for use in pypi.org
- Fix entry_point in setup.py leaving it off by default again.
- Fix conflict in setup.py leaving it off by default again.
- Fix bug in name code.
- 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.
- Fix ReadMe for pipy
- Refactor, DRY it up.
- Update python 2 vs python 3 print statement styles.
- Add back the decorator to fix the flake8 --version call.
- 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
- Fix bug introduced in 1.6.
- Added proper support for python3 and testing for python 2.6, 2.7 and 3.4
- Added python2.6 support. Thanks @zoidbergwill
- Apped noqa support
- Dropped noqa support
- Support for multiline comments and less false positives
- Does not catch the word print in single line strings
- Does not catch inline comments with print in it
- Added tests
- First release
- Whoops