#NEWLINE# def check( file_staged_for_commit , options ) : #NEWLINE# #INDENT# basename = os . path . basename ( file_staged_for_commit . path ) #NEWLINE# if ( not fnmatch . fnmatch ( basename , options . file_size_files ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( file_staged_for_commit . size > int ( options . file_size_limit ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return True