Fix no-assert code-smell regex.

pull/53561/head
Matt Clay 6 years ago
parent be39e757e3
commit 7c0bc9e4ac

@ -5,7 +5,7 @@ import os
import re
import sys
ASSERT_RE = re.compile(r'.*(?<![-:a-zA-Z#][ -])\bassert\b(?!:).*')
ASSERT_RE = re.compile(r'^\s*assert[^a-z0-9_:]')
def main():

Loading…
Cancel
Save