You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could have a rule that enforces the re documentation’s recommendation of rewriting re.compile("pattern") to re.compile(r"pattern"), and similar for the first argument of re.search, re.match, re.fullmatch, re.split, re.findall, re.finditer, re.sub, re.subn.
Prior art: flake8-literalLIT103 with the literal-re-pattern-raw option set to always.
The text was updated successfully, but these errors were encountered:
We could have a rule that enforces the
re
documentation’s recommendation of rewritingre.compile("pattern")
tore.compile(r"pattern")
, and similar for the first argument ofre.search
,re.match
,re.fullmatch
,re.split
,re.findall
,re.finditer
,re.sub
,re.subn
.Prior art: flake8-literal
LIT103
with theliteral-re-pattern-raw
option set toalways
.The text was updated successfully, but these errors were encountered: