Skip to content

Commit

Permalink
Dependencies: Bump yapf to 0.40.0 (#6068)
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 4, 2023
1 parent cb8af9f commit a8ae508
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
]

- repo: https://github.com/google/yapf
rev: v0.33.0
rev: v0.40.0
hooks:
- id: yapf
name: yapf
Expand Down
17 changes: 8 additions & 9 deletions tests/manage/test_caching_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,18 @@ def test_configuration(configure_caching, config_dict, enabled_for, disabled_for
assert not get_use_cache(identifier=identifier)


@pytest.mark.parametrize(
['config_dict', 'valid_identifiers', 'invalid_identifiers'],
[({
@pytest.mark.parametrize(['config_dict', 'valid_identifiers', 'invalid_identifiers'], [
({
'default_enabled': False,
'enabled_for': ['aiida.calculations:*thmetic.add'],
'disabled_for': ['aiida.calculations:arith*ic.add']
}, ['some_identifier', 'aiida.calculations:core.templatereplacer'], ['aiida.calculations:arithmetic.add']),
({
'default_enabled': False,
'enabled_for': ['aiida.calculations:arithmetic.add'],
'disabled_for': ['aiida.calculations:arithmetic.add']
}, ['some_identifier', 'aiida.calculations:core.templatereplacer'], ['aiida.calculations:arithmetic.add'])]
)
({
'default_enabled': False,
'enabled_for': ['aiida.calculations:arithmetic.add'],
'disabled_for': ['aiida.calculations:arithmetic.add']
}, ['some_identifier', 'aiida.calculations:core.templatereplacer'], ['aiida.calculations:arithmetic.add'])
])
def test_ambiguous_configuration(configure_caching, config_dict, valid_identifiers, invalid_identifiers):
"""
Check that calling 'get_use_cache' on identifiers for which the
Expand Down

0 comments on commit a8ae508

Please sign in to comment.