mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Added fix end of file hook.
This commit is contained in:
parent
8c30419c13
commit
dc1494d0e7
13 changed files with 15 additions and 16 deletions
|
|
@ -50,4 +50,4 @@ def get_validator(
|
|||
|
||||
return obj
|
||||
|
||||
return validate
|
||||
return validate
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@ SUPPORTED_LANGUAGES = set([
|
|||
'python',
|
||||
'ruby',
|
||||
'node',
|
||||
])
|
||||
])
|
||||
|
|
|
|||
|
|
@ -18,4 +18,4 @@ def in_hooks_workspace():
|
|||
local.path(get_pre_commit_dir_path()).mkdir()
|
||||
|
||||
with local.cwd(get_pre_commit_dir_path()):
|
||||
yield
|
||||
yield
|
||||
|
|
|
|||
|
|
@ -21,4 +21,4 @@ languages = {
|
|||
'node': node,
|
||||
'python': python,
|
||||
'ruby': ruby,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,4 +33,4 @@ def install_environment():
|
|||
|
||||
def run_hook(hook, file_args):
|
||||
with in_env() as env:
|
||||
return helpers.run_hook(env, hook, file_args)
|
||||
return helpers.run_hook(env, hook, file_args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue