# pylint:disable=C0103,W0104,W0105 """Check format """ __revision__ = '' notpreceded= 1 notfollowed =1 notfollowed <=1 correct = 1 correct >= 1 def func(arg, arg2): """test named argument """ func(arg=arg+1, arg2=arg2-arg) aaaa,bbbb = 1,2 aaaa |= bbbb aaaa &= bbbb if aaaa: pass else: aaaa,bbbb = 1,2 aaaa,bbbb = bbbb,aaaa bbbb = (1,2,3) aaaa = bbbb[1:] aaaa = bbbb[:1] aaaa = bbbb[:] aaaa = {aaaa:bbbb} # allclose(x,y) uses |x-y|ist genau gleich yo+=4 """ html2 = """ yo+=4 """ func('''Hello ''', 0) assert boo <= 10, "Note is %.2f. Either you cheated, or pylint's \ broken!" % boo def _gc_debug(gcc): """bad format undetected w/ py2.5""" ocount = {} for obj in gcc.get_objects(): try: ocount[obj.__class__]+= 1 except KeyError: ocount[obj.__class__]=1 except AttributeError: pass def hop(context): """multi-lines string""" return [''' %(send)s%(send)s''' % context, ''' %(cancel)s%(cancel)s''' % context, ] titreprojet = '\ Drapeau vert\ %s' % aaaa # Well-formatted try-except-finally block. try: pass except IOError, e: print e finally: pass try: pass except IOError, e: print e finally: pass # multiple-statements # This is not allowed by the default configuration. if True: print False