Add pep8 import order check
Set flake8-import-order version to 0.17.1 Full py3 compatible version. Add all Python3 modules to stdlib list. Also includes fix to an enum34 dependency bug. Change-Id: I58dd80fc33942656c69ce67ee523a1d57f693e93
This commit is contained in:
parent
1b01c94f15
commit
ece9f6e25f
@ -14,6 +14,7 @@
|
||||
|
||||
# Avoid shadowing of system copy module by copy action plugin.
|
||||
from __future__ import absolute_import
|
||||
|
||||
import abc
|
||||
from copy import deepcopy
|
||||
import itertools
|
||||
|
@ -12,12 +12,12 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule # noqa
|
||||
|
||||
import json
|
||||
import os.path
|
||||
import time
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule # noqa
|
||||
|
||||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
|
@ -6,3 +6,5 @@ ansible-lint>=3.0.0 # MIT
|
||||
coverage>=4.5.1 # Apache-2.0
|
||||
flake8>=3.5.0 # MIT
|
||||
stestr>=1.0.0 # Apache-2.0
|
||||
flake8-import-order>=0.17.1 # LGPLv3
|
||||
|
||||
|
@ -13,13 +13,14 @@
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import copy
|
||||
import imp
|
||||
import os
|
||||
import unittest
|
||||
|
||||
from ansible.errors import AnsibleActionFail
|
||||
import six
|
||||
import unittest
|
||||
|
||||
|
||||
# Python 2/3 compatibility.
|
||||
|
@ -13,6 +13,7 @@
|
||||
# under the License.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import copy
|
||||
import imp
|
||||
import json
|
||||
@ -21,7 +22,6 @@ import random
|
||||
from itertools import repeat, chain, cycle
|
||||
|
||||
from ansible.module_utils import basic
|
||||
|
||||
from tests.utils import ModuleTestCase, set_module_args, AnsibleExitJson, \
|
||||
AnsibleFailJson
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import json
|
||||
|
||||
import unittest
|
||||
|
||||
from ansible.module_utils import basic
|
||||
|
Loading…
Reference in New Issue
Block a user