16 ast.AsyncFunctionDef # __IGNORE_EXCEPTION__ |
16 ast.AsyncFunctionDef # __IGNORE_EXCEPTION__ |
17 except AttributeError: |
17 except AttributeError: |
18 ast.AsyncFunctionDef = ast.FunctionDef |
18 ast.AsyncFunctionDef = ast.FunctionDef |
19 |
19 |
20 |
20 |
21 class NamingStyleChecker(object): |
21 class NamingStyleChecker: |
22 """ |
22 """ |
23 Class implementing a checker for naming conventions. |
23 Class implementing a checker for naming conventions. |
24 """ |
24 """ |
25 LowercaseRegex = re.compile(r"[_a-z][_a-z0-9]*$") |
25 LowercaseRegex = re.compile(r"[_a-z][_a-z0-9]*$") |
26 UppercaseRegexp = re.compile(r"[_A-Z][_A-Z0-9]*$") |
26 UppercaseRegexp = re.compile(r"[_A-Z][_A-Z0-9]*$") |