mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
Clean up
This commit is contained in:
parent
6cb92e067c
commit
3c4d673674
3 changed files with 34 additions and 73 deletions
|
|
@ -11,7 +11,6 @@ import pkg_resources
|
|||
from cached_property import cached_property
|
||||
|
||||
from pre_commit import five
|
||||
from pre_commit.clientlib.validate_config import _LOCAL_HOOKS_MAGIC_REPO_STRING
|
||||
from pre_commit.clientlib.validate_config import is_local_hooks
|
||||
from pre_commit.clientlib.validate_manifest import MANIFEST_JSON_SCHEMA
|
||||
from pre_commit.jsonschema_extensions import apply_defaults
|
||||
|
|
@ -41,9 +40,7 @@ class Repository(object):
|
|||
def create(cls, config, store, owner):
|
||||
repo_path_getter = store.get_repo_path_getter(
|
||||
config['repo'],
|
||||
_LOCAL_HOOKS_MAGIC_REPO_STRING if
|
||||
is_local_hooks(config) else config['sha'],
|
||||
owner,
|
||||
owner if is_local_hooks(config) else config['sha'],
|
||||
)
|
||||
if is_local_hooks(config):
|
||||
return LocalRepository(config, repo_path_getter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue