Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wrong_import_position.py 777B

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