Skip to main content

Flake8 plugin to reject any implicit string concatinations

Project description

Github Actions Code style: black

flake8-no-implicit-concat

Flake8 plugin to reject any implicit string concatenations.

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

Violation code

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

Code Description
NIC001 Implicitly concatenated string literals

Related Project

  • 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.

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.0.1.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

flake8_no_implicit_concat-0.0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

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