mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
python 3.6 reached end of life on 2021-12-23 Committed via https://github.com/asottile/all-repos
12 lines
242 B
Python
12 lines
242 B
Python
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from pre_commit_hooks.util import cmd_output
|
|
|
|
|
|
@pytest.fixture
|
|
def temp_git_dir(tmpdir):
|
|
git_dir = tmpdir.join('gits')
|
|
cmd_output('git', 'init', '--', str(git_dir))
|
|
yield git_dir
|