mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
pre-commit gc
This commit is contained in:
parent
d7f5c6f979
commit
9e34e6e316
12 changed files with 412 additions and 116 deletions
|
|
@ -82,7 +82,7 @@ def modify_config(path='.', commit=True):
|
|||
git_commit(msg=modify_config.__name__, cwd=path)
|
||||
|
||||
|
||||
def config_with_local_hooks():
|
||||
def sample_local_config():
|
||||
return {
|
||||
'repo': 'local',
|
||||
'hooks': [{
|
||||
|
|
@ -94,6 +94,10 @@ def config_with_local_hooks():
|
|||
}
|
||||
|
||||
|
||||
def sample_meta_config():
|
||||
return {'repo': 'meta', 'hooks': [{'id': 'check-useless-excludes'}]}
|
||||
|
||||
|
||||
def make_config_from_repo(repo_path, rev=None, hooks=None, check=True):
|
||||
manifest = load_manifest(os.path.join(repo_path, C.MANIFEST_FILE))
|
||||
config = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue