Skip to main content

PyPI version PyPI - Python Version Downloads build Codecov

flake8-no-implicit-concat

Flake8 plugin that forbids implicit str/bytes literal concatenations.

# Not Allowed
print('foo' 'bar', 'baz')
a = ["aaa",
     "bbb"
     "ccc"]
b = b'abc' b'def'

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

Installation

Install via pip:

pip install flake8-no-implicit-concat

Violation Codes

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

Code Description
NIC001 Implicitly concatenated str literals on one line
NIC002 Implicitly concatenated str literals over multiple lines
NIC101 Implicitly concatenated bytes literals on one line
NIC102 Implicitly concatenated bytes literals over multiple lines

Other Plugins & Linters

  • flake8-implicit-str-concat Flake8 plugin to encourage correct string literal concatenation. This plugin is different from flake8-no-implicit-concat because this plugin prefers implicit concatenations over explicit + operators when concatenating literals over multiple lines.
  • 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 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.

Development

Use tools like Pipenv/uv:

pipenv --python 3.14
pipenv run python -m pip install -e .[test,lint]
pipenv run make check
# uv example
uv venv --python 3.14
uv pip install -e .[test,lint]
uv run make check

License

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

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

Metadata

Release files for flake8-no-implicit-concat 0.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-no-implicit-concat 0.3.8
File Size Uploaded Provenance Actions
flake8_no_implicit_concat-0.3.8.tar.gz 11.3 kB Without provenance Details for flake8_no_implicit_concat-0.3.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-no-implicit-concat 0.3.8
File Interpreter ABI Platform Actions
flake8_no_implicit_concat-0.3.8-py3-none-any.whl Python 3 none any Details for flake8_no_implicit_concat-0.3.8-py3-none-any.whl

Total release size: 17.1 kB

Release files / flake8_no_implicit_concat-0.3.8.tar.gz

Download URL flake8_no_implicit_concat-0.3.8.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
13e812a14c56bfd2e007552d6cd1a12843d591455f046c1a1a5911003e188479
BLAKE2b-256 checksum
How to use checksums
5b323b6f23b22d6de706cc434a76e966f85553335a08e9a1dd29c12e08c4fed6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / flake8_no_implicit_concat-0.3.8-py3-none-any.whl

Download URL flake8_no_implicit_concat-0.3.8-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c073df6d0935e20e30b676abe4cb4721d559a0a83b9d72ec5eeab2541e712582
BLAKE2b-256 checksum
How to use checksums
4266b6fbdf65a76d9546a411fc37c8823bcb2621eebf2a2ec74fef530fcea76f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for flake8-no-implicit-concat 0.3.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page