Skip to main content

Flake8 plugin that forbids any implicit string concatenations

Project description

Github Actions codecov PyPI version Code style: black

flake8-no-implicit-concat

Flake8 plugin that forbids any implicit string concatenations.

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

Installation

Install via pip:

pip install flake8-no-implicit-concat

Violation code

The plugin uses the prefix NIC, short for No Implicit Concatenation.

Code Description
NIC001 Implicitly concatenated string literals

Related Projects

  • flake8-implicit-str-concat Flake8 plugin to encourage correct string literal concatenation. There are cases where this plugin prefers to implicit concatenation over explicit +, so these two plugins cannot be used at once.
  • wemake-python-styleguide Set of strict flake8 rules with some other plugins as dependencies. It implements WPS326 Found implicit string concatenation, which also checks implicit string concatenations, as one of the many rules it has.

Development

Use Pipenv to run test locally:

pipenv install
pipenv run check

License

This software is licensed under MIT license. See LICENSE for details.

The code was derived from flake8-implicit-str-concat, which is developed by Dylan Turner and also licensed under MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-no-implicit-concat-0.1.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file flake8-no-implicit-concat-0.1.1.tar.gz.

File metadata

  • Download URL: flake8-no-implicit-concat-0.1.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for flake8-no-implicit-concat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 253c5f921cbe971c3f3196a743f7fab5bc1d0f1dbf3adec7de6476aa403a86c7
MD5 8d95f104abef5efbf9d9986584690ca2
BLAKE2b-256 7e96219ab15a6f747d14863f6331946281093b46ef9ec52754b1c0e522cc490b

See more details on using hashes here.

File details

Details for the file flake8_no_implicit_concat-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: flake8_no_implicit_concat-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for flake8_no_implicit_concat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3b1274bab58471786e0eeb906534495d1ce257884a3c14a1e95e00b75d50f6b
MD5 82afadd4749c08f54d58e6cd3b62989c
BLAKE2b-256 e79ccbc2cbb1d0396567677b25b6aad717ba0a26f4791fdc7ce4804a0c477ce2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page