flake8-print


Nameflake8-print JSON
Version 5.0.0 PyPI version JSON
download
home_pagehttps://github.com/jbkahn/flake8-print
Summaryprint statement checker plugin for flake8
upload_time2022-04-30 16:19:22
maintainer
docs_urlNone
authorJoseph Kahn
requires_python>=3.7
licenseMIT
keywords flake8 plugin linting print code quality
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            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 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 `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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jbkahn/flake8-print",
    "name": "flake8-print",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "flake8,plugin,linting,print,code quality",
    "author": "Joseph Kahn",
    "author_email": "josephbkahn@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2b/a6/770c5832a6b563e023def7d81925d1b9f3079ebc805e48be0a5ee206f716/flake8-print-5.0.0.tar.gz",
    "platform": null,
    "description": "Flake8 print plugin\n===================\n\nCheck for Print statements in python files.\n\nThis module provides a plugin for ``flake8``, the Python code checker.\n\n\nInstallation\n------------\n\nYou can install or upgrade ``flake8-print`` with these commands::\n\n  $ pip install flake8-print\n  $ pip install --upgrade flake8-print\n\n\nPlugin for Flake8\n-----------------\n\nWhen both ``flake8 2.4.1`` and ``flake8-print`` are installed, the plugin is\navailable in ``flake8``::\n\n    $ flake8 --version\n    2.4.1 (pep8: 1.5.7, flake8-print: 2.0.0, mccabe: 0.3.1, pyflakes: 0.8.1)\n\nFlake8 allows disabling some tests based on the folder:\n\n```\n[flake8]\nper-file-ignores =\n    scripts/*: T20\n    cli.py: T20\n```\n\nError codes\n-----------\n\n| Error Code  | Description                          |\n| ----------- | ------------------------------------ |\n| T201        | print found                          |\n| T203        | pprint found                         |\n| T204        | pprint declared                      |\n\n\nChanges\n-------\n\n##### 5.0.0 - 2022-04-30\n\n* Move namespace from T0* to T2* to avoid collision with other library using same error code.\n* Remove python 2 specific code paths, error messages and six usage.\n\n##### 4.0.1 - 2022-04-30\n\n* Fixing bug with noqa detection by removing manual detection and relying on flake8 itself.\n\n##### 4.0.0 - 2020-11-29\n\n* Opted back into using Poetry now that the existing issues have been fixed.\n* Python 2.7 support was now officially dropped.\n\n##### 3.1.4 - 2019-1-11\n\n* Fix bug introduced in 3.1.3\n* Support for `nopep8` comments\n\n##### 3.1.3 - 2019-31-10\n\n* Swapped back from poetry to setup.py :(....python ecosystem issues....\n* single function refactor code\n\n##### 3.1.1 - 2019-03-12\n\n* Fix reading from stdin when it is closed (requires flake8 > 2.1).\n* Add error codes to ReadMe.\n* Swapped to poetry from setup.py\n* Ran black on the repository\n\n##### 3.1.0 - 2018-02-11\n* Add a framework classifier for use in pypi.org\n* Fix entry_point in setup.py leaving it off by default again.\n\n##### 3.0.1 - 2017-11-06\n* Fix conflict in setup.py leaving it off by default again.\n* Fix bug in name code.\n\n##### 3.0.0 - 2017-11-05\n* Remove some of the python 2/3 message differentiation.\n* Use an AST rather than a logical line checker with a regex.\n* pprint support.\n* Loss of multiline noqa support, until there is a way to use both the AST and have flake8 provide the noqa lines.\n\n\n##### 2.0.2 - 2016-02-29\n* Fix ReadMe for pipy\n* Refactor, DRY it up.\n* Update python 2 vs python 3 print statement styles.\n\n##### 2.0.1 - 2015-11-21\n* Add back the decorator to fix the `flake8 --version` call.\n\n##### 2.0 - 2015-11-10\n* Support noqa at end of multiline print statement\n* Performance improvements\n* Removed PrintStatementChecker class and other functions\n* Added T101 for 'Python 2.x reserved word print used.'\n* Added testing for Python 3.3 and 3.5, and different flake8 versions\n\n##### 1.6.1 - 2015-05-22\n* Fix bug introduced in 1.6.\n\n##### 1.6 - 2015-05-18\n* Added proper support for python3 and testing for python 2.6, 2.7 and 3.4\n\n##### 1.5 - 2014-11-04\n* Added python2.6 support. Thanks @zoidbergwill\n\n##### 1.4 - 2014-10-06\n* Apped noqa support\n\n##### 1.3 - 2014-09-27\n* Dropped noqa support\n* Support for multiline comments and less false positives\n\n##### 1.2 - 2014-06-30\n* Does not catch the word print in single line strings\n* Does not catch inline comments with print in it\n* Added tests\n\n##### 1.1 - 2014-06-30\n* First release\n\n##### 1.0 - 2014-06-30\n* Whoops\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "print statement checker plugin for flake8",
    "version": "5.0.0",
    "split_keywords": [
        "flake8",
        "plugin",
        "linting",
        "print",
        "code quality"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "2bac93cab654b9b633384f184aec36a1",
                "sha256": "84a1a6ea10d7056b804221ac5e62b1cee1aefc897ce16f2e5c42d3046068f5d8"
            },
            "downloads": -1,
            "filename": "flake8_print-5.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2bac93cab654b9b633384f184aec36a1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5687,
            "upload_time": "2022-04-30T16:19:24",
            "upload_time_iso_8601": "2022-04-30T16:19:24.307875Z",
            "url": "https://files.pythonhosted.org/packages/74/2c/aa2ffda404b5d9c89dad8bcc4e0f4af673ab2de67e96997d13f04ad68b5b/flake8_print-5.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "b541b0ca61010d3a6fa91a3fb1400a06",
                "sha256": "76915a2a389cc1c0879636c219eb909c38501d3a43cc8dae542081c9ba48bdf9"
            },
            "downloads": -1,
            "filename": "flake8-print-5.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b541b0ca61010d3a6fa91a3fb1400a06",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 5166,
            "upload_time": "2022-04-30T16:19:22",
            "upload_time_iso_8601": "2022-04-30T16:19:22.711785Z",
            "url": "https://files.pythonhosted.org/packages/2b/a6/770c5832a6b563e023def7d81925d1b9f3079ebc805e48be0a5ee206f716/flake8-print-5.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-04-30 16:19:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "jbkahn",
    "github_project": "flake8-print",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "flake8-print"
}
        
Elapsed time: 0.06287s