Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Improving implicit-str-concat/details.rst #8649

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion doc/data/messages/i/implicit-str-concat/details.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
By default, detection of implicit string concatenation of line jumps is disabled.
Hence the following code will not trigger this rule:
Hence the following code will not trigger this rule:

.. code-block:: python

Expand All @@ -13,3 +12,15 @@ In order to detect this case, you must enable `check-str-concat-over-line-jumps`

[STRING_CONSTANT]
check-str-concat-over-line-jumps = yes

However, the drawback of this setting is that it will trigger false positive
for string parameters passed on multiple lines in function calls:

.. code-block:: python

warnings.warn(
"rotate() is deprecated and will be removed in a future release. "
"Use the rotation() context manager instead.",
DeprecationWarning,
stacklevel=3,
)
1 change: 1 addition & 0 deletions doc/data/messages/i/implicit-str-concat/related.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [PR #8590](https://github.com/pylint-dev/pylint/pull/8590): allowing parenthesized implicitly concatenated strings, to be more compatible with `black`
Pierre-Sassoulas marked this conversation as resolved.
Show resolved Hide resolved