summaryrefslogtreecommitdiff
path: root/examples/pylintrc
diff options
context:
space:
mode:
authorWes Turner <westurner@google.com>2019-12-18 13:14:56 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2020-01-05 12:27:09 +0100
commit06d52873188df2e27934da6bac3b67cea008b9a9 (patch)
tree522d6239858349d072148444b9a859df8afcbb8a /examples/pylintrc
parentbd6aa15de9f9b9ad848ccbc49fef06011cb95e1e (diff)
downloadpylint-git-06d52873188df2e27934da6bac3b67cea008b9a9.tar.gz
Adds a new check 'inconsistent-quotes'.
Quoting PEP-8: In Python, single-quoted strings and double-quoted strings are the same. This PEP does not make a recommendation for this. Pick a rule and stick to it. When a string contains single or double quote characters, however, use the other one to avoid backslashes in the string. It improves readability. For triple-quoted strings, always use double quote characters to be consistent with the docstring convention in PEP 257. Features: Accounts for strings where the delimiter is swapped so an internal quote doesn't need to be escaped Only errors on those lines that represent the module's minority delimiter. Ignores longstrings (they could be docstrings, and checking those delimiters is someone else's responsibility)
Diffstat (limited to 'examples/pylintrc')
-rw-r--r--examples/pylintrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/pylintrc b/examples/pylintrc
index 1277bd21b..fd1befdaf 100644
--- a/examples/pylintrc
+++ b/examples/pylintrc
@@ -476,6 +476,10 @@ notes=FIXME,
# several lines.
check-str-concat-over-line-jumps=no
+# This flag controls whether inconsistent-quotes generates a warning when the
+# character used as a quote delimiter is used inconsistently within a module.
+check-quote-consistency=no
+
[IMPORTS]