Flake8 plugin that forbids any implicit string concatenations
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for flake8-no-implicit-concat-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bfe57df029837a832d2e829a7a4002f54be3fd8c820d18eec2201355e19be23 |
|
MD5 | 057140704ea2fb6e1eb69172f7f85bcf |
|
BLAKE2b-256 | 62a7a97b3e9e69a29ba27ed69cbcca4ce3f160c0fed36c3c57ab10334fb387d7 |
Close
Hashes for flake8_no_implicit_concat-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 396258861c10e929b2db37595624bc30e243465577d639230dbdbe8fb036e99c |
|
MD5 | adaafde2cd99d82cb482cb0e6466fb44 |
|
BLAKE2b-256 | 5f95caa2d23d4c9c005d6d0ceba3245e5532c577944befdc0d8d5625cfeb2366 |