#NEWLINE# def validate_config_extra( config ) : #NEWLINE# #INDENT# for repo in config : #NEWLINE# #INDENT# if is_local_hooks ( repo ) : #NEWLINE# #INDENT# if ( 'sha' in repo ) : #NEWLINE# #INDENT# raise InvalidConfigError ( '"sha" property provided for local hooks' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'sha' not in repo ) : #NEWLINE# #INDENT# raise InvalidConfigError ( 'Missing "sha" field for repository {0}' . format ( repo [ 'repo' ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# for hook in repo [ 'hooks' ] : #NEWLINE# #INDENT# try_regex ( repo , hook [ 'id' ] , hook . get ( 'files' , '' ) , 'files' ) #NEWLINE# try_regex ( repo , hook [ 'id' ] , hook . get ( 'exclude' , '' ) , 'exclude' )