flake8-no-implicit-str-concat-in-list


Nameflake8-no-implicit-str-concat-in-list JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryFlake8 plugin that forbids implicit str/bytes literal concatenations
upload_time2023-02-05 22:52:04
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords flake8
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI version](https://badge.fury.io/py/flake8-no-implicit-str-concat-in-list.svg)](https://badge.fury.io/py/flake8-no-implicit-str-concat-in-list)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flake8-no-implicit-str-concat-in-list)
[![Downloads](https://pepy.tech/badge/flake8-no-implicit-str-concat-in-list/month)](https://pepy.tech/project/flake8-no-implicit-str-concat-in-list)
[![Github Actions](https://github.com/johnzielke/flake8-no-implicit-str-concat-in-list/workflows/build/badge.svg?event=push)](https://github.com/johnzielke/flake8-no-implicit-str-concat-in-list/actions)
[![Codecov](https://codecov.io/gh/johnzielke/flake8-no-implicit-str-concat-in-list/branch/master/graph/badge.svg)](https://codecov.io/gh/johnzielke/flake8-no-implicit-str-concat-in-list)
[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)



flake8-no-implicit-str-concat-in-list
=========================

[Flake8][] plugin that forbids implicit str/bytes literal concatenations inside literals such as lists, sets and tuples.

    # NG
    a = ["aaa",
         "bbb"
         "ccc"]

    # OK
    print('foobar' 'baz')
    a = ["aaa",
         "bbb"
         + "ccc"]
    b = b'abcdef'
    s = ('abc'
        'def')
 

Installation
------------

Install via pip:

    pip install flake8-no-implicit-str-concat-in-list


Violation Codes
---------------

The plugin uses the prefix `ICL`, short for no **i**mplicit string **c**oncatenation in **l**ists.
Unfortunately flake8 only allows three characters for the error code prefix.

| Code  | Description                                                |
| ----- | ---------------------------------------------------------- |
| ICL122 | Implicitly concatenated bytes literals in list literal over multiple lines.      |
| ICL112 | Implicitly concatenated bytes literals in list literal.                          |
| ICL121 | Implicitly concatenated str literals in list literal over multiple lines.        |
| ICL111 | Implicitly concatenated str literals in list literal.                            |
| ICL222 | Implicitly concatenated bytes literals in tuple literal over multiple lines.     |
| ICL212 | Implicitly concatenated bytes literals in tuple literal.                         |
| ICL221 | Implicitly concatenated str literals in tuple literal over multiple lines.       |
| ICL211 | Implicitly concatenated str literals in tuple literal.                           |
| ICL322 | Implicitly concatenated bytes literals in set literal over multiple lines.       |
| ICL312 | Implicitly concatenated bytes literals in set literal.                           |
| ICL321 | Implicitly concatenated str literals in set literal over multiple lines.         |
| ICL311 | Implicitly concatenated str literals in set literal.                             |


Other Plugins & Linters
-----------------------

- [**flake8-implicit-str-concat**][flake8-implicit-str-concat]
  Flake8 plugin to encourage correct string literal concatenation.
  This plugin is different from `flake8-no-implicit-str-concat-in-list`
  because this plugin prefers implicit concatenations over explicit `+`
  operators when concatenating literals even inside lists, tuples and set literals.
- [**wemake-python-styleguide**][wemake-python-styleguide]
  Set of strict flake8 rules with several plugins as dependencies.
  It implements `WPS326 Found implicit string concatenation`, which also
  checks implicit string concatenations, as one of the many rules it defines.
- [**pylint**][pylint] 
  This linter has `implicit-str-concat` rule.
  By default it only looks for occurrences of implicit concatenations on the
  same line, but it has `--check-str-concat-over-line-jumps=y` option
  to enable checking of concatenations over multiple lines.
- [**flake8-no-implicit-concat**][flake8-no-implicit-concat] 
  This linter has `no_implicit_concat` rule.
  It also looks for implicit string concatenation but in all contexts,
  not just in lists.

Development
-----------

Use tools like Pipenv:

    pipenv run python -m pip install -e .[dev]
    pipenv run make check


License
-------

This software is released under MIT license. See `LICENSE` for details.

The code was derived from [flake8-no-implicit-concat][], which is developed by
10sr and also released under MIT license.



[Flake8]: https://flake8.pycqa.org/en/latest/
[flake8-implicit-str-concat]: https://github.com/keisheiled/flake8-implicit-str-concat
[flake8-no-implicit-concat]: https://github.com/10sr/flake8-no-implicit-concat
[wemake-python-styleguide]: https://github.com/wemake-services/wemake-python-styleguide
[pylint]: https://github.com/PyCQA/pylint

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "flake8-no-implicit-str-concat-in-list",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "flake8",
    "author": null,
    "author_email": "johnzielke <code@johnzielke.de>",
    "download_url": "https://files.pythonhosted.org/packages/2a/12/7f78d4331e803742e008d976781c2251b4bb8b476da16a4a57500bc7d307/flake8_no_implicit_str_concat_in_list-0.1.0.tar.gz",
    "platform": null,
    "description": "[![PyPI version](https://badge.fury.io/py/flake8-no-implicit-str-concat-in-list.svg)](https://badge.fury.io/py/flake8-no-implicit-str-concat-in-list)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flake8-no-implicit-str-concat-in-list)\n[![Downloads](https://pepy.tech/badge/flake8-no-implicit-str-concat-in-list/month)](https://pepy.tech/project/flake8-no-implicit-str-concat-in-list)\n[![Github Actions](https://github.com/johnzielke/flake8-no-implicit-str-concat-in-list/workflows/build/badge.svg?event=push)](https://github.com/johnzielke/flake8-no-implicit-str-concat-in-list/actions)\n[![Codecov](https://codecov.io/gh/johnzielke/flake8-no-implicit-str-concat-in-list/branch/master/graph/badge.svg)](https://codecov.io/gh/johnzielke/flake8-no-implicit-str-concat-in-list)\n[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)\n\n\n\nflake8-no-implicit-str-concat-in-list\n=========================\n\n[Flake8][] plugin that forbids implicit str/bytes literal concatenations inside literals such as lists, sets and tuples.\n\n    # NG\n    a = [\"aaa\",\n         \"bbb\"\n         \"ccc\"]\n\n    # OK\n    print('foobar' 'baz')\n    a = [\"aaa\",\n         \"bbb\"\n         + \"ccc\"]\n    b = b'abcdef'\n    s = ('abc'\n        'def')\n \n\nInstallation\n------------\n\nInstall via pip:\n\n    pip install flake8-no-implicit-str-concat-in-list\n\n\nViolation Codes\n---------------\n\nThe plugin uses the prefix `ICL`, short for no **i**mplicit string **c**oncatenation in **l**ists.\nUnfortunately flake8 only allows three characters for the error code prefix.\n\n| Code  | Description                                                |\n| ----- | ---------------------------------------------------------- |\n| ICL122 | Implicitly concatenated bytes literals in list literal over multiple lines.      |\n| ICL112 | Implicitly concatenated bytes literals in list literal.                          |\n| ICL121 | Implicitly concatenated str literals in list literal over multiple lines.        |\n| ICL111 | Implicitly concatenated str literals in list literal.                            |\n| ICL222 | Implicitly concatenated bytes literals in tuple literal over multiple lines.     |\n| ICL212 | Implicitly concatenated bytes literals in tuple literal.                         |\n| ICL221 | Implicitly concatenated str literals in tuple literal over multiple lines.       |\n| ICL211 | Implicitly concatenated str literals in tuple literal.                           |\n| ICL322 | Implicitly concatenated bytes literals in set literal over multiple lines.       |\n| ICL312 | Implicitly concatenated bytes literals in set literal.                           |\n| ICL321 | Implicitly concatenated str literals in set literal over multiple lines.         |\n| ICL311 | Implicitly concatenated str literals in set literal.                             |\n\n\nOther Plugins & Linters\n-----------------------\n\n- [**flake8-implicit-str-concat**][flake8-implicit-str-concat]\n  Flake8 plugin to encourage correct string literal concatenation.\n  This plugin is different from `flake8-no-implicit-str-concat-in-list`\n  because this plugin prefers implicit concatenations over explicit `+`\n  operators when concatenating literals even inside lists, tuples and set literals.\n- [**wemake-python-styleguide**][wemake-python-styleguide]\n  Set of strict flake8 rules with several plugins as dependencies.\n  It implements `WPS326 Found implicit string concatenation`, which also\n  checks implicit string concatenations, as one of the many rules it defines.\n- [**pylint**][pylint] \n  This linter has `implicit-str-concat` rule.\n  By default it only looks for occurrences of implicit concatenations on the\n  same line, but it has `--check-str-concat-over-line-jumps=y` option\n  to enable checking of concatenations over multiple lines.\n- [**flake8-no-implicit-concat**][flake8-no-implicit-concat] \n  This linter has `no_implicit_concat` rule.\n  It also looks for implicit string concatenation but in all contexts,\n  not just in lists.\n\nDevelopment\n-----------\n\nUse tools like Pipenv:\n\n    pipenv run python -m pip install -e .[dev]\n    pipenv run make check\n\n\nLicense\n-------\n\nThis software is released under MIT license. See `LICENSE` for details.\n\nThe code was derived from [flake8-no-implicit-concat][], which is developed by\n10sr and also released under MIT license.\n\n\n\n[Flake8]: https://flake8.pycqa.org/en/latest/\n[flake8-implicit-str-concat]: https://github.com/keisheiled/flake8-implicit-str-concat\n[flake8-no-implicit-concat]: https://github.com/10sr/flake8-no-implicit-concat\n[wemake-python-styleguide]: https://github.com/wemake-services/wemake-python-styleguide\n[pylint]: https://github.com/PyCQA/pylint\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Flake8 plugin that forbids implicit str/bytes literal concatenations",
    "version": "0.1.0",
    "split_keywords": [
        "flake8"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "359ede0f6f167223d70cdcf39f256955d823a7d9128ea4ad5d4870eda627ec6f",
                "md5": "ca2d77d950e042548fe8480406ad59be",
                "sha256": "7772cc8d8fc424d4ad93598e6cf6e83e1db32a56904814254f6761e24c2aa643"
            },
            "downloads": -1,
            "filename": "flake8_no_implicit_str_concat_in_list-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ca2d77d950e042548fe8480406ad59be",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6016,
            "upload_time": "2023-02-05T22:52:06",
            "upload_time_iso_8601": "2023-02-05T22:52:06.405847Z",
            "url": "https://files.pythonhosted.org/packages/35/9e/de0f6f167223d70cdcf39f256955d823a7d9128ea4ad5d4870eda627ec6f/flake8_no_implicit_str_concat_in_list-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2a127f78d4331e803742e008d976781c2251b4bb8b476da16a4a57500bc7d307",
                "md5": "3d312d6d1a15fe6e5fcb2554d038e731",
                "sha256": "b6dec674f546712b9b267b84f82ac0c9696a1ef9d5aaac8c8f9e44cc1329a54e"
            },
            "downloads": -1,
            "filename": "flake8_no_implicit_str_concat_in_list-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3d312d6d1a15fe6e5fcb2554d038e731",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4855,
            "upload_time": "2023-02-05T22:52:04",
            "upload_time_iso_8601": "2023-02-05T22:52:04.438536Z",
            "url": "https://files.pythonhosted.org/packages/2a/12/7f78d4331e803742e008d976781c2251b4bb8b476da16a4a57500bc7d307/flake8_no_implicit_str_concat_in_list-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-05 22:52:04",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "flake8-no-implicit-str-concat-in-list"
}
        
Elapsed time: 0.29130s