Skip to content

Commit 57014d6

Browse files
Bump pylint to 2.13.9, update changelog
1 parent 7d80ca5 commit 57014d6

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

CONTRIBUTORS.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ contributors:
8989
- Ville Skyttä <[email protected]>
9090
- Matus Valo <[email protected]>
9191
- Pierre-Yves David <[email protected]>
92-
- David Shea <[email protected]>: invalid sequence and slice index
9392
- Mark Byrne <[email protected]>
93+
- David Shea <[email protected]>: invalid sequence and slice index
9494
- Derek Gustafson <[email protected]>
9595
- Cezar Elnazli <[email protected]>: deprecated-method
9696
- Nicolas Chauvat <[email protected]>

ChangeLog

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Release date: TBA
1818

1919
What's New in Pylint 2.13.9?
2020
============================
21-
Release date: TBA
21+
Release date: 2022-05-13
2222

2323

2424
* Respect ignore configuration options with ``--recursive=y``.

pylint/__pkginfo__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing import Tuple
66

7-
__version__ = "2.13.8"
7+
__version__ = "2.13.9"
88

99

1010
def get_numversion_from_version(v: str) -> Tuple:

pylint/checkers/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ def uninferable_final_decorators(
820820
"""
821821
decorators = []
822822
for decorator in getattr(node, "nodes", []):
823-
import_nodes: tuple[nodes.Import | nodes.ImportFrom] | None = None
823+
import_nodes = None
824824

825825
# Get the `Import` node. The decorator is of the form: @module.name
826826
if isinstance(decorator, nodes.Attribute):

pylint/lint/expand_modules.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ def _is_in_ignore_list_re(element: str, ignore_list_re: List[Pattern]) -> bool:
4545

4646
def _is_ignored_file(
4747
element: str,
48-
ignore_list: list[str],
49-
ignore_list_re: list[Pattern[str]],
50-
ignore_list_paths_re: list[Pattern[str]],
48+
ignore_list,
49+
ignore_list_re,
50+
ignore_list_paths_re,
5151
) -> bool:
5252
basename = os.path.basename(element)
5353
return (

pylint/lint/pylinter.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ def make_options() -> Tuple[Tuple[str, OptionDict], ...]:
251251
"type": "regexp_paths_csv",
252252
"metavar": "<pattern>[,<pattern>...]",
253253
"default": [],
254+
"dest": "ignore_paths",
254255
"help": "Add files or directories matching the regex patterns to the "
255256
"ignore-list. The regex matches against paths and can be in "
256257
"Posix or Windows format.",
@@ -1030,8 +1031,8 @@ def _discover_files(self, files_or_modules: Sequence[str]) -> Iterator[str]:
10301031

10311032
if _is_ignored_file(
10321033
root,
1033-
self.config.ignore,
1034-
self.config.ignore_patterns,
1034+
self.config.black_list,
1035+
self.config.black_list_re,
10351036
self.config.ignore_paths,
10361037
):
10371038
skip_subtrees.append(root)
@@ -1193,7 +1194,7 @@ def _expand_files(self, modules) -> List[ModuleDescriptionDict]:
11931194
modules,
11941195
self.config.black_list,
11951196
self.config.black_list_re,
1196-
self._ignore_paths,
1197+
self.config.ignore_paths,
11971198
)
11981199
for error in errors:
11991200
message = modname = error["mod"]

tbump.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github_url = "https://github.com/PyCQA/pylint"
22

33
[version]
4-
current = "2.13.8"
4+
current = "2.13.9"
55
regex = '''
66
^(?P<major>0|[1-9]\d*)
77
\.

tests/test_self.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ def test_ignore_pattern_recursive(self):
13231323
[
13241324
join(HERE, "regrtest_data", "directory"),
13251325
"--recursive=y",
1326-
"--ignore-pattern=ignored_.*",
1326+
"--ignore-patterns=ignored_.*",
13271327
],
13281328
code=0,
13291329
)
@@ -1332,7 +1332,7 @@ def test_ignore_pattern_recursive(self):
13321332
[
13331333
join(HERE, "regrtest_data", "directory"),
13341334
"--recursive=y",
1335-
"--ignore-pattern=failing.*",
1335+
"--ignore-patterns=failing.*",
13361336
],
13371337
code=0,
13381338
)
@@ -1347,7 +1347,7 @@ def test_ignore_path_recursive(self):
13471347
[
13481348
join(HERE, "regrtest_data", "directory"),
13491349
"--recursive=y",
1350-
"--ignore-path=.*ignored.*",
1350+
"--ignore-paths=.*ignored.*",
13511351
],
13521352
code=0,
13531353
)
@@ -1356,7 +1356,7 @@ def test_ignore_path_recursive(self):
13561356
[
13571357
join(HERE, "regrtest_data", "directory"),
13581358
"--recursive=y",
1359-
"--ignore-path=.*failing.*",
1359+
"--ignore-paths=.*failing.*",
13601360
],
13611361
code=0,
13621362
)

0 commit comments

Comments
 (0)