Skip to content

Commit

Permalink
Merge pull request #1922 from pre-commit/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
asottile committed May 24, 2021
2 parents 229a4e0 + d3c5cd6 commit 488b199
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
hooks:
- id: validate_manifest
- repo: https://github.com/asottile/pyupgrade
rev: v2.16.0
rev: v2.18.2
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand Down
4 changes: 2 additions & 2 deletions tests/clientlib_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion tests/repository_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 488b199

Please sign in to comment.