Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 488b199

Browse files
authored
Merge pull request #1922 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 229a4e0 + d3c5cd6 commit 488b199

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
hooks:
2626
- id: validate_manifest
2727
- repo: https://github.com/asottile/pyupgrade
28-
rev: v2.16.0
28+
rev: v2.18.2
2929
hooks:
3030
- id: pyupgrade
3131
args: [--py36-plus]

tests/clientlib_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def test_minimum_pre_commit_version_passing():
427427
@pytest.mark.parametrize('schema', (CONFIG_SCHEMA, CONFIG_REPO_DICT))
428428
def test_warn_additional(schema):
429429
allowed_keys = {item.key for item in schema.items if hasattr(item, 'key')}
430-
warn_additional, = [
430+
warn_additional, = (
431431
x for x in schema.items if isinstance(x, cfgv.WarnAdditionalKeys)
432-
]
432+
)
433433
assert allowed_keys == set(warn_additional.keys)

tests/repository_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _get_hook_no_install(repo_config, store, hook_id):
5151
config = cfgv.validate(config, CONFIG_SCHEMA)
5252
config = cfgv.apply_defaults(config, CONFIG_SCHEMA)
5353
hooks = all_hooks(config, store)
54-
hook, = [hook for hook in hooks if hook.id == hook_id]
54+
hook, = (hook for hook in hooks if hook.id == hook_id)
5555
return hook
5656

5757

0 commit comments

Comments
 (0)