mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Various cleanup.
This commit is contained in:
parent
bf912cfebb
commit
01b557c497
12 changed files with 85 additions and 37 deletions
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue