diff options
author | Damien Baty <damien.baty@polyconseil.fr> | 2020-07-06 00:01:50 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-08-18 09:12:33 +0200 |
commit | 89f1a6fa3a73297da5c9e7c53a395fad3de85e3f (patch) | |
tree | 6eb04f498073a2e24916581813d25e92298b1b0c /pylint | |
parent | 9bc9bdf533213ba967b5199aa9f3246f08f8999c (diff) | |
download | pylint-git-89f1a6fa3a73297da5c9e7c53a395fad3de85e3f.tar.gz |
Switch to isort 5 for pylint's own code
Diffstat (limited to 'pylint')
-rw-r--r-- | pylint/checkers/base.py | 3 | ||||
-rw-r--r-- | pylint/checkers/spelling.py | 5 | ||||
-rw-r--r-- | pylint/checkers/utils.py | 3 | ||||
-rwxr-xr-x | pylint/epylint.py | 2 | ||||
-rw-r--r-- | pylint/extensions/docparams.py | 2 | ||||
-rw-r--r-- | pylint/graph.py | 3 |
6 files changed, 7 insertions, 11 deletions
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index e93ad66e5..d284ea37d 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -54,7 +54,6 @@ # For details: https://github.com/PyCQA/pylint/blob/master/COPYING """basic checker for Python code""" - import builtins import collections import itertools @@ -67,8 +66,8 @@ import astroid.bases import astroid.scoped_nodes from astroid.arguments import CallSite -import pylint.utils as lint_utils from pylint import checkers, exceptions, interfaces +from pylint import utils as lint_utils from pylint.checkers import utils from pylint.checkers.utils import ( is_overload_stub, diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index ad5ac9c21..dea75bef8 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -21,7 +21,6 @@ """Checker for spelling errors in comments and docstrings. """ - import os import re import tokenize @@ -33,12 +32,12 @@ from pylint.interfaces import IAstroidChecker, ITokenChecker try: import enchant from enchant.tokenize import ( # type: ignore - get_tokenizer, Chunker, - Filter, EmailFilter, + Filter, URLFilter, WikiWordFilter, + get_tokenizer, ) except ImportError: enchant = None diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py index 912cac06c..e413ab199 100644 --- a/pylint/checkers/utils.py +++ b/pylint/checkers/utils.py @@ -50,13 +50,12 @@ import string from functools import lru_cache, partial from typing import Callable, Dict, Iterable, List, Match, Optional, Set, Tuple, Union +import _string import astroid from astroid import bases as _bases from astroid import helpers, scoped_nodes from astroid.exceptions import _NonDeducibleTypeHierarchy -import _string # pylint: disable=wrong-import-position, wrong-import-order - BUILTINS_NAME = builtins.__name__ COMP_NODE_TYPES = ( astroid.ListComp, diff --git a/pylint/epylint.py b/pylint/epylint.py index 00e8d1908..ba629af1d 100755 --- a/pylint/epylint.py +++ b/pylint/epylint.py @@ -56,10 +56,10 @@ You may also use py_run to run pylint with desired options and get back (or not) its output. """ import os -import os.path as osp import shlex import sys from io import StringIO +from os import path as osp from subprocess import PIPE, Popen diff --git a/pylint/extensions/docparams.py b/pylint/extensions/docparams.py index 85fcaab74..9db49864d 100644 --- a/pylint/extensions/docparams.py +++ b/pylint/extensions/docparams.py @@ -21,9 +21,9 @@ """ import astroid -import pylint.extensions._check_docs_utils as utils from pylint.checkers import BaseChecker from pylint.checkers import utils as checker_utils +from pylint.extensions import _check_docs_utils as utils from pylint.interfaces import IAstroidChecker diff --git a/pylint/graph.py b/pylint/graph.py index 823713e61..219d0b392 100644 --- a/pylint/graph.py +++ b/pylint/graph.py @@ -13,13 +13,12 @@ (dot generation adapted from pypy/translator/tool/make_dot.py) """ - import codecs import os -import os.path as osp import subprocess import sys import tempfile +from os import path as osp def target_info_from_filename(filename): |