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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 900a3678e27bdb73f79b7274bd8603ee1c3a92242e15ecc4f3b4f77d5ceb8840 |
|
MD5 | b0ef0bb785d7150e4a11cef49cae6360 |
|
BLAKE2b-256 | b1f9a6682583fc0864170723f064c7e781247d7eb74535af202ee60078fc254f |
Close
Hashes for flake8_no_implicit_concat-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56bb41374d7e6d198cdeb92e3601e140d5b3c2695fcd7f3d15e079604469d888 |
|
MD5 | 47b05997f4e2327b1f479c98e59116c8 |
|
BLAKE2b-256 | 18fd8c5a5c0c61725e3be9adfc0e95fd25cf6815addd63e868bb09b7ed25fbfb |