Fix no-assert code-smell regex.
This commit is contained in:
parent
be39e757e3
commit
7c0bc9e4ac
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue