| """Checks import order rule""" |
| # pylint: disable=unused-import,wrong-import-position,wrong-import-order,using-constant-test |
| # pylint: disable=import-error |
| import six |
| import logging.config |
| import os.path |
| from astroid import are_exclusive |
| import logging # [ungrouped-imports] |
| import unused_import |
| try: |
| import os # [ungrouped-imports] |
| except ImportError: |
| pass |
| from os import pardir |
| import scipy |
| from os import sep |
| from astroid import exceptions # [ungrouped-imports] |
| if True: |
| import logging.handlers # [ungrouped-imports] |
| from os.path import join # [ungrouped-imports] |
| # Test related to compatibility with isort: |
| # We check that we do not create error with the old way pylint was handling it |
| import subprocess |
| import unittest |
| from unittest import TestCase |
| from unittest.mock import MagicMock |