mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 09:04:41 +04:00
py27+ syntax improvements
This commit is contained in:
parent
0a93f3bfdd
commit
ba75867c93
9 changed files with 31 additions and 34 deletions
|
|
@ -426,7 +426,7 @@ def test_languages(tempdir_factory, store):
|
|||
path = make_repo(tempdir_factory, 'python_hooks_repo')
|
||||
config = make_config_from_repo(path)
|
||||
repo = Repository.create(config, store)
|
||||
assert repo.languages == set([('python', 'default')])
|
||||
assert repo.languages == {('python', 'default')}
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
|
|
@ -435,7 +435,7 @@ def test_additional_dependencies(tempdir_factory, store):
|
|||
config = make_config_from_repo(path)
|
||||
config['hooks'][0]['additional_dependencies'] = ['pep8']
|
||||
repo = Repository.create(config, store)
|
||||
assert repo.additional_dependencies['python']['default'] == set(('pep8',))
|
||||
assert repo.additional_dependencies['python']['default'] == {'pep8'}
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue