mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
49283737c5
commit
99b9676d45
1 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ def test_install_hooks_dead_symlink(in_git_dir, store):
|
|||
def test_install_hooks_symlink_inside_git_repo(in_git_dir, store):
|
||||
hooks_dir = in_git_dir.join('.git/hooks')
|
||||
os.symlink(
|
||||
in_git_dir.join('hooks').ensure_dir().strpath, hooks_dir.strpath
|
||||
in_git_dir.join('hooks').ensure_dir().strpath, hooks_dir.strpath,
|
||||
)
|
||||
hook = hooks_dir.join('pre-commit')
|
||||
assert install(C.CONFIG_FILE, store, hook_types=['pre-commit']) == 0
|
||||
|
|
@ -122,7 +122,7 @@ def test_install_hooks_symlink_inside_git_repo(in_git_dir, store):
|
|||
def test_install_hooks_symlink_outisde_git_repo(in_git_dir, store):
|
||||
hooks_dir = in_git_dir.join('.git/hooks')
|
||||
os.symlink(
|
||||
in_git_dir.join('../hooks').ensure_dir().strpath, hooks_dir.strpath
|
||||
in_git_dir.join('../hooks').ensure_dir().strpath, hooks_dir.strpath,
|
||||
)
|
||||
hook = hooks_dir.join('pre-commit')
|
||||
assert install(C.CONFIG_FILE, store, hook_types=['pre-commit']) != 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue