summaryrefslogtreecommitdiff
path: root/pylint
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2022-05-09 21:16:34 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2022-05-13 17:30:49 +0200
commit57014d6a45672d76f6a58a9533ff998268525165 (patch)
tree3e942755be49f369d70b3793d9404f52f0c545fe /pylint
parent7d80ca5bdbbb0aea4da504ba8abc984f1530fd80 (diff)
downloadpylint-git-2.13.9.tar.gz
Bump pylint to 2.13.9, update changelogv2.13.9
Diffstat (limited to 'pylint')
-rw-r--r--pylint/__pkginfo__.py2
-rw-r--r--pylint/checkers/utils.py2
-rw-r--r--pylint/lint/expand_modules.py6
-rw-r--r--pylint/lint/pylinter.py7
4 files changed, 9 insertions, 8 deletions
diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py
index 9ac08af5a..91585ad9e 100644
--- a/pylint/__pkginfo__.py
+++ b/pylint/__pkginfo__.py
@@ -4,7 +4,7 @@
from typing import Tuple
-__version__ = "2.13.8"
+__version__ = "2.13.9"
def get_numversion_from_version(v: str) -> Tuple:
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index 9cba6e057..5f00734e9 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -820,7 +820,7 @@ def uninferable_final_decorators(
"""
decorators = []
for decorator in getattr(node, "nodes", []):
- import_nodes: tuple[nodes.Import | nodes.ImportFrom] | None = None
+ import_nodes = None
# Get the `Import` node. The decorator is of the form: @module.name
if isinstance(decorator, nodes.Attribute):
diff --git a/pylint/lint/expand_modules.py b/pylint/lint/expand_modules.py
index 07b92895a..302eea9fb 100644
--- a/pylint/lint/expand_modules.py
+++ b/pylint/lint/expand_modules.py
@@ -45,9 +45,9 @@ def _is_in_ignore_list_re(element: str, ignore_list_re: List[Pattern]) -> bool:
def _is_ignored_file(
element: str,
- ignore_list: list[str],
- ignore_list_re: list[Pattern[str]],
- ignore_list_paths_re: list[Pattern[str]],
+ ignore_list,
+ ignore_list_re,
+ ignore_list_paths_re,
) -> bool:
basename = os.path.basename(element)
return (
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py
index 878c1190e..a0218937d 100644
--- a/pylint/lint/pylinter.py
+++ b/pylint/lint/pylinter.py
@@ -251,6 +251,7 @@ class PyLinter(
"type": "regexp_paths_csv",
"metavar": "<pattern>[,<pattern>...]",
"default": [],
+ "dest": "ignore_paths",
"help": "Add files or directories matching the regex patterns to the "
"ignore-list. The regex matches against paths and can be in "
"Posix or Windows format.",
@@ -1030,8 +1031,8 @@ class PyLinter(
if _is_ignored_file(
root,
- self.config.ignore,
- self.config.ignore_patterns,
+ self.config.black_list,
+ self.config.black_list_re,
self.config.ignore_paths,
):
skip_subtrees.append(root)
@@ -1193,7 +1194,7 @@ class PyLinter(
modules,
self.config.black_list,
self.config.black_list_re,
- self._ignore_paths,
+ self.config.ignore_paths,
)
for error in errors:
message = modname = error["mod"]