|
61 | 61 | 'E722,' # do not use bare 'except'
|
62 | 62 | 'E742,' # do not define classes named "l", "O", or "I"
|
63 | 63 | 'E743,' # do not define functions named "l", "O", or "I"
|
64 |
| - 'E901,' # SyntaxError: invalid syntax |
65 |
| - 'E902,' # TokenError: EOF in multi-line string |
66 | 64 | 'F401,' # module imported but unused
|
67 | 65 | 'F402,' # import module from line N shadowed by loop variable
|
68 | 66 | 'F403,' # 'from foo_module import *' used; unable to detect undefined names
|
|
73 | 71 | 'F601,' # dictionary key name repeated with different values
|
74 | 72 | 'F602,' # dictionary key variable name repeated with different values
|
75 | 73 | 'F621,' # too many expressions in an assignment with star-unpacking
|
76 |
| - 'F622,' # two or more starred expressions in an assignment (a, *b, *c = d) |
77 | 74 | 'F631,' # assertion test is a tuple, which are always True
|
78 | 75 | 'F632,' # use ==/!= to compare str, bytes, and int literals
|
79 |
| - 'F701,' # a break statement outside of a while or for loop |
80 |
| - 'F702,' # a continue statement outside of a while or for loop |
81 |
| - 'F703,' # a continue statement in a finally block in a loop |
82 |
| - 'F704,' # a yield or yield from statement outside of a function |
83 |
| - 'F705,' # a return statement with arguments inside a generator |
84 |
| - 'F706,' # a return statement outside of a function/method |
85 |
| - 'F707,' # an except: block as not the last exception handler |
86 | 76 | 'F811,' # redefinition of unused name from line N
|
87 | 77 | 'F812,' # list comprehension redefines 'foo' from line N
|
88 | 78 | 'F821,' # undefined name 'Foo'
|
89 | 79 | 'F822,' # undefined name name in __all__
|
90 | 80 | 'F823,' # local variable name … referenced before assignment
|
91 |
| - 'F831,' # duplicate argument name in function definition |
92 | 81 | 'F841,' # local variable 'foo' is assigned to but never used
|
93 | 82 | 'W191,' # indentation contains tabs
|
94 | 83 | 'W291,' # trailing whitespace
|
95 | 84 | 'W292,' # no newline at end of file
|
96 | 85 | 'W293,' # blank line contains whitespace
|
97 |
| - 'W601,' # .has_key() is deprecated, use "in" |
98 |
| - 'W602,' # deprecated form of raising exception |
99 |
| - 'W603,' # "<>" is deprecated, use "!=" |
100 |
| - 'W604,' # backticks are deprecated, use "repr()" |
101 | 86 | 'W605,' # invalid escape sequence "x"
|
102 |
| - 'W606,' # 'async' and 'await' are reserved keywords starting with Python 3.7 |
103 | 87 | )
|
104 | 88 |
|
105 | 89 |
|
|
0 commit comments