From 8893a8f33bcf95d945f72ce30a307d731e2572d3 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 24 Apr 2025 13:59:06 +0200 Subject: [PATCH] Complain about a missing comma in multiline lists of strings Signed-off-by: Gilles Peskine --- .pylintrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.pylintrc b/.pylintrc index f9c97d55e..4a1b6e555 100644 --- a/.pylintrc +++ b/.pylintrc @@ -70,6 +70,17 @@ disable=locally-disabled,locally-enabled,logging-format-interpolation,no-else-re # Don't diplay statistics. Just the facts. reports=no +[STRING] +# Complain about +# ``` +# list_of_strings = [ +# 'foo' # <-- missing comma +# 'bar', +# 'corge', +# ] +# ``` +check-str-concat-over-line-jumps=yes + [VARIABLES] # Allow unused variables if their name starts with an underscore. # [unused-argument]