summaryrefslogtreecommitdiff
path: root/tests/functional/w/wrong_import_position.py
blob: c06f9da1fb45b9bd3c558356bfabde199c539c9d (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,ungrouped-imports,wrong-import-order
# pylint: disable=import-error, too-few-public-methods, missing-docstring,using-constant-test, useless-object-inheritance
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  # [wrong-import-position]

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]