Flake8 plugin to reject any implicit string concatinations
Project description
flake8-no-implicit-concat
Flake8 plugin to reject any implicit string concatenations.
# NG
a = ["aaa",
"bbb"
"ccc"]
# OK
a = ["aaa",
"bbb" +
"ccc"]
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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a4bc3eb116a48b3d0a6c9a84d76696e535a661191f90aba04fb996bc027f609 |
|
MD5 | 27a9d2863b1856cf7ff28f34c778a112 |
|
BLAKE2b-256 | c5a59870df0ebaf732953405607def3ef0ebcc298e1ff32e5a94c2bae379254e |
Close
Hashes for flake8_no_implicit_concat-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1e4e395d5b67af213e64ede322cb217afdcc002d34735827e5e0d8181cf3c36 |
|
MD5 | d2cd91dc42c5d236a2a8ae8a1a7f6b2f |
|
BLAKE2b-256 | f4690c620c73c8f39b36ffaf61094c8c0bef23ff311267078ea1ca4a2c41b22b |