Various cleanup.

This commit is contained in:
Anthony Sottile 2014-06-06 07:38:25 -07:00
parent bf912cfebb
commit 01b557c497
12 changed files with 85 additions and 37 deletions

View file

@ -29,7 +29,9 @@ logger = logging.getLogger('pre_commit')
def install(runner):
"""Install the pre-commit hooks."""
pre_commit_file = pkg_resources.resource_filename('pre_commit', 'resources/pre-commit.sh')
pre_commit_file = pkg_resources.resource_filename(
'pre_commit', 'resources/pre-commit.sh',
)
with open(runner.pre_commit_path, 'w') as pre_commit_file_obj:
pre_commit_file_obj.write(open(pre_commit_file).read())