Skip to content

Commit

Permalink
Updated commit hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinffernandez committed Apr 17, 2024
1 parent 3e65b1d commit eddfd77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import subprocess

def get_files():
return subprocess.check_output(['git', 'diff-index','--cached',
'--name-only', 'HEAD']).split()
return [i.decode("utf-8") for i in subprocess.check_output(['git', 'diff-index','--cached',
'--name-only', 'HEAD']).split()]

def apply_code_style():
files = filter(lambda x: x.find('tests/system/gt_data') == -1, get_files())
Expand Down

0 comments on commit eddfd77

Please sign in to comment.