Flake8 plugin that forbids implicit string literal concatenations
Project description
flake8-no-implicit-concat
Flake8 plugin that forbids implicit string literal concatenations.
# NG
a = "abc" "def"
b = ["aaa",
"bbb"
"ccc"]
# OK
a = "abcdef"
b = ["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
+
operator , 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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7b58fff0c2b4c54579c3b76ae7132414d791abe78c847edaf6c47f05f05f3dd |
|
MD5 | 37a809db7a3be4a83c74c20167ebc1e9 |
|
BLAKE2b-256 | 2870eb80c2bd769102e84808cc4b4e905492a8990c3c49fefb8e88ae90da74cc |
Close
Hashes for flake8_no_implicit_concat-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1041fe3c721bb51a4e942e300c3e32335949cffc4eef9d60f2dac7de0dd439e8 |
|
MD5 | df308dff17d3e9783dc753e8deae8307 |
|
BLAKE2b-256 | 886c28b0956ada47749e58889fd8f181ea9a92ade06169f0c33a58b8d6424b5d |