Skip to content

Commit

Permalink
Fixed issue when not setting pylint_params #31
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdah committed Oct 16, 2014
1 parent 294159d commit faa3eef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions git_pylint_commit_hook/commit_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,12 @@ def check_repo(

if pylint_params:
command += pylint_params.split()

if '--rcfile' not in pylint_params:
if '--rcfile' not in pylint_params:
command.append('--rcfile={}'.format(pylintrc))
else:
command.append('--rcfile={}'.format(pylintrc))


command.append(python_file)

proc = subprocess.Popen(
Expand Down

0 comments on commit faa3eef

Please sign in to comment.