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 Projects
- 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. - wemake-python-styleguide
Set of strict flake8 rules with some other plugins as dependencies.
It implements
WPS326 Found implicit string concatenation
, which also checks implicit string concatenations, as one of the many rules it has.
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 253c5f921cbe971c3f3196a743f7fab5bc1d0f1dbf3adec7de6476aa403a86c7 |
|
MD5 | 8d95f104abef5efbf9d9986584690ca2 |
|
BLAKE2b-256 | 7e96219ab15a6f747d14863f6331946281093b46ef9ec52754b1c0e522cc490b |
Close
Hashes for flake8_no_implicit_concat-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3b1274bab58471786e0eeb906534495d1ce257884a3c14a1e95e00b75d50f6b |
|
MD5 | 82afadd4749c08f54d58e6cd3b62989c |
|
BLAKE2b-256 | e79ccbc2cbb1d0396567677b25b6aad717ba0a26f4791fdc7ce4804a0c477ce2 |