Show More
@@ -68,7 +68,8 b' pypats = [' | |||||
68 | (r'[^\n]\Z', "no trailing newline"), |
|
68 | (r'[^\n]\Z', "no trailing newline"), | |
69 | # (r'^\s+[^_ ][^_. ]+_[^_]+\s*=', "don't use underbars in identifiers"), |
|
69 | # (r'^\s+[^_ ][^_. ]+_[^_]+\s*=', "don't use underbars in identifiers"), | |
70 | # (r'\w*[a-z][A-Z]\w*\s*=', "don't use camelcase in identifiers"), |
|
70 | # (r'\w*[a-z][A-Z]\w*\s*=', "don't use camelcase in identifiers"), | |
71 |
(r'^\s*(if|while|def|class|except|try)\s[^[]*:\s*[^\]#\s]+', |
|
71 | (r'^\s*(if|while|def|class|except|try)\s[^[]*:\s*[^\]#\s]+', | |
|
72 | "linebreak after :"), | |||
72 | (r'class\s[^(]:', "old-style class, use class foo(object)"), |
|
73 | (r'class\s[^(]:', "old-style class, use class foo(object)"), | |
73 | (r'^\s+except\(', "except isn't a function"), |
|
74 | (r'^\s+except\(', "except isn't a function"), | |
74 | # (r'class\s[A-Z][^\(]*\((?!Exception)', |
|
75 | # (r'class\s[A-Z][^\(]*\((?!Exception)', |
General Comments 0
You need to be logged in to leave comments.
Login now