comparison contrib/check-code.py @ 45942:89a2afe31e82

formating: upgrade to black 20.8b1 This required a couple of small tweaks to un-confuse black, but now it works. Big formatting changes come from: * Dramatically improved collection-splitting logic upstream * Black having a strong (correct IMO) opinion that """ is better than ''' Differential Revision: https://phab.mercurial-scm.org/D9430
author Augie Fackler <raf@durin42.com>
date Fri, 27 Nov 2020 17:03:29 -0500
parents c102b704edb5
children d4ba4d51f85f
comparison
equal deleted inserted replaced
45941:346af7687c6f 45942:89a2afe31e82
618 (r'''(#\s*include\s+<)([^>]+)>''', repinclude), 618 (r'''(#\s*include\s+<)([^>]+)>''', repinclude),
619 (r'(\()([^)]+\))', repcallspaces), 619 (r'(\()([^)]+\))', repcallspaces),
620 ] 620 ]
621 621
622 inutilpats = [ 622 inutilpats = [
623 [(r'\bui\.', "don't use ui in util"),], 623 [
624 (r'\bui\.', "don't use ui in util"),
625 ],
624 # warnings 626 # warnings
625 [], 627 [],
626 ] 628 ]
627 629
628 inrevlogpats = [ 630 inrevlogpats = [
629 [(r'\brepo\.', "don't use repo in revlog"),], 631 [
632 (r'\brepo\.', "don't use repo in revlog"),
633 ],
630 # warnings 634 # warnings
631 [], 635 [],
632 ] 636 ]
633 637
634 webtemplatefilters = [] 638 webtemplatefilters = []