flake8-no-implicit-concat

0.3.7 · active · verified Wed Apr 15

flake8-no-implicit-concat is a Flake8 plugin designed to forbid implicit string and bytes literal concatenations in Python code. It helps enforce a coding style where string concatenation is always explicit, thereby preventing subtle bugs caused by accidentally concatenated literals. The current version is 0.3.7, and the project maintains an active release cadence with regular updates.

Warnings

Install

Quickstart

After installation, `flake8-no-implicit-concat` is automatically registered with Flake8. Simply run `flake8` on your project to start detecting implicit string/bytes literal concatenations. The plugin uses error codes prefixed with 'NIC' (No Implicit Concatenation).

# Install the plugin
pip install flake8-no-implicit-concat

# Create a Python file with implicit concatenation (e.g., example.py)
# print('hello' 'world')

# Run flake8 to detect the issue
flake8 example.py

# Output will include a 'NIC' error, e.g.:
# example.py:1:7: NIC001 Implicit string literal concatenation.

view raw JSON →