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 details)

Uploaded Source

Built Distribution

File details

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

File metadata

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

File hashes

Hashes for flake8-no-implicit-concat-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7a4bc3eb116a48b3d0a6c9a84d76696e535a661191f90aba04fb996bc027f609
MD5 27a9d2863b1856cf7ff28f34c778a112
BLAKE2b-256 c5a59870df0ebaf732953405607def3ef0ebcc298e1ff32e5a94c2bae379254e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flake8_no_implicit_concat-0.0.1-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/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for flake8_no_implicit_concat-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1e4e395d5b67af213e64ede322cb217afdcc002d34735827e5e0d8181cf3c36
MD5 d2cd91dc42c5d236a2a8ae8a1a7f6b2f
BLAKE2b-256 f4690c620c73c8f39b36ffaf61094c8c0bef23ff311267078ea1ca4a2c41b22b

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