def git_hook():
 (_, files_modified, _) = run('git diff-index --cached --name-only HEAD')
 options = parse_options()
 setup_logger(options)
 candidates = list(map(str, files_modified))
 if candidates:
  process_paths(options, candidates=candidates)

def git_hook ( ) : ( _ , files_modified , _ ) = run ( 'git diff-index --cached --name-only HEAD' ) options = parse_options ( ) setup_logger ( options ) candidates = list ( map ( str , files_modified ) ) if candidates : process_paths ( options , candidates = candidates )
run pylama after git commit .