mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
just use normal dicts in tests
This commit is contained in:
parent
2125a4cf47
commit
e4cf5f321b
7 changed files with 114 additions and 157 deletions
|
|
@ -2,7 +2,6 @@ from __future__ import absolute_import
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import argparse
|
||||
import collections
|
||||
import functools
|
||||
|
||||
import cfgv
|
||||
|
|
@ -170,7 +169,7 @@ def ordered_load_normalize_legacy_config(contents):
|
|||
data = ordered_load(contents)
|
||||
if isinstance(data, list):
|
||||
# TODO: Once happy, issue a deprecation warning and instructions
|
||||
return collections.OrderedDict([('repos', data)])
|
||||
return {'repos': data}
|
||||
else:
|
||||
return data
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue