blob: 269d7573c88200c97b55e69781e9ed8e460fa7e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
"""Checks import order rule"""
# pylint: disable=unused-import,relative-import,ungrouped-imports,wrong-import-order,using-constant-test
# pylint: disable=import-error, too-few-public-methods, missing-docstring
import os.path
if True:
from astroid import are_exclusive
try:
import sys
except ImportError:
class Myclass(object):
"""docstring"""
if sys.version_info[0] == 3:
from collections import OrderedDict
else:
class OrderedDict(object):
"""Nothing to see here."""
def some_func(self):
pass
import six
CONSTANT = True
import datetime # [wrong-import-position]
VAR = 0
for i in range(10):
VAR += i
import scipy # [wrong-import-position]
import astroid # [wrong-import-position]
|