mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-31 02:36:52 +00:00
Move get_template_path function to pakcage utils
Moved out the function from testing package to project main package.
This commit is contained in:
parent
51e5b74f80
commit
f072bb622f
4 changed files with 8 additions and 7 deletions
|
|
@ -14,8 +14,3 @@ def get_resource_path(path):
|
|||
def git_commit(*args, **kwargs):
|
||||
cmd = ('git', 'commit', '--no-gpg-sign', '--no-verify', '--no-edit', *args)
|
||||
subprocess.check_call(cmd, **kwargs)
|
||||
|
||||
|
||||
def get_template_path(path):
|
||||
parent_dir = os.path.abspath(os.path.join(TESTING_DIR, os.pardir))
|
||||
return os.path.join(parent_dir, 'templates', path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue