summaryrefslogtreecommitdiffstats
path: root/tests/repository_test.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-12 12:03:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-08-12 12:03:24 +0000
commitdb201c7e8329ebc584fbebcc18f5b64825f6d023 (patch)
treeeed388903a58a2988bdf587ee7c7622d167226f7 /tests/repository_test.py
parentAdding upstream version 2.13.0. (diff)
downloadpre-commit-2188dbcdddf01a62756012f370d864f5deff2264.tar.xz
pre-commit-2188dbcdddf01a62756012f370d864f5deff2264.zip
Adding upstream version 2.14.0.upstream/2.14.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/repository_test.py')
-rw-r--r--tests/repository_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/repository_test.py b/tests/repository_test.py
index b6f7fb2..af829c2 100644
--- a/tests/repository_test.py
+++ b/tests/repository_test.py
@@ -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