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
1d2cde763c
commit
d3c5cd6ee2
2 changed files with 3 additions and 3 deletions
|
|
@ -427,7 +427,7 @@ def test_minimum_pre_commit_version_passing():
|
|||
@pytest.mark.parametrize('schema', (CONFIG_SCHEMA, CONFIG_REPO_DICT))
|
||||
def test_warn_additional(schema):
|
||||
allowed_keys = {item.key for item in schema.items if hasattr(item, 'key')}
|
||||
warn_additional, = [
|
||||
warn_additional, = (
|
||||
x for x in schema.items if isinstance(x, cfgv.WarnAdditionalKeys)
|
||||
]
|
||||
)
|
||||
assert allowed_keys == set(warn_additional.keys)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ def _get_hook_no_install(repo_config, store, hook_id):
|
|||
config = cfgv.validate(config, CONFIG_SCHEMA)
|
||||
config = cfgv.apply_defaults(config, CONFIG_SCHEMA)
|
||||
hooks = all_hooks(config, store)
|
||||
hook, = [hook for hook in hooks if hook.id == hook_id]
|
||||
hook, = (hook for hook in hooks if hook.id == hook_id)
|
||||
return hook
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue