Skip to main content

Flake8 plugin that forbids any implicit string concatenations

Project description

Github Actions 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 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.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flake8_no_implicit_concat-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flake8-no-implicit-concat-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 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.0.tar.gz
Algorithm Hash digest
SHA256 7bfe57df029837a832d2e829a7a4002f54be3fd8c820d18eec2201355e19be23
MD5 057140704ea2fb6e1eb69172f7f85bcf
BLAKE2b-256 62a7a97b3e9e69a29ba27ed69cbcca4ce3f160c0fed36c3c57ab10334fb387d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flake8_no_implicit_concat-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 396258861c10e929b2db37595624bc30e243465577d639230dbdbe8fb036e99c
MD5 adaafde2cd99d82cb482cb0e6466fb44
BLAKE2b-256 5f95caa2d23d4c9c005d6d0ceba3245e5532c577944befdc0d8d5625cfeb2366

See more details on using hashes here.

Supported by

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