Skip to content

Commit

Permalink
Bump pylint to 2.13.9, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed May 13, 2022
1 parent 7d80ca5 commit 57014d6
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ contributors:
- Ville Skyttä <ville.skytta@iki.fi>
- Matus Valo <matusvalo@users.noreply.github.com>
- Pierre-Yves David <pierre-yves.david@logilab.fr>
- David Shea <dshea@redhat.com>: invalid sequence and slice index
- Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
- David Shea <dshea@redhat.com>: invalid sequence and slice index
- Derek Gustafson <degustaf@gmail.com>
- Cezar Elnazli <cezar.elnazli2@gmail.com>: deprecated-method
- Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Expand Down
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Release date: TBA

What's New in Pylint 2.13.9?
============================
Release date: TBA
Release date: 2022-05-13


* Respect ignore configuration options with ``--recursive=y``.
Expand Down
2 changes: 1 addition & 1 deletion pylint/__pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from typing import Tuple

__version__ = "2.13.8"
__version__ = "2.13.9"


def get_numversion_from_version(v: str) -> Tuple:
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 3 additions & 3 deletions pylint/lint/expand_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
7 changes: 4 additions & 3 deletions pylint/lint/pylinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def make_options() -> Tuple[Tuple[str, OptionDict], ...]:
"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.",
Expand Down Expand Up @@ -1030,8 +1031,8 @@ def _discover_files(self, files_or_modules: Sequence[str]) -> Iterator[str]:

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)
Expand Down Expand Up @@ -1193,7 +1194,7 @@ def _expand_files(self, modules) -> List[ModuleDescriptionDict]:
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"]
Expand Down
2 changes: 1 addition & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github_url = "https://github.com/PyCQA/pylint"

[version]
current = "2.13.8"
current = "2.13.9"
regex = '''
^(?P<major>0|[1-9]\d*)
\.
Expand Down
8 changes: 4 additions & 4 deletions tests/test_self.py
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ def test_ignore_pattern_recursive(self):
[
join(HERE, "regrtest_data", "directory"),
"--recursive=y",
"--ignore-pattern=ignored_.*",
"--ignore-patterns=ignored_.*",
],
code=0,
)
Expand All @@ -1332,7 +1332,7 @@ def test_ignore_pattern_recursive(self):
[
join(HERE, "regrtest_data", "directory"),
"--recursive=y",
"--ignore-pattern=failing.*",
"--ignore-patterns=failing.*",
],
code=0,
)
Expand All @@ -1347,7 +1347,7 @@ def test_ignore_path_recursive(self):
[
join(HERE, "regrtest_data", "directory"),
"--recursive=y",
"--ignore-path=.*ignored.*",
"--ignore-paths=.*ignored.*",
],
code=0,
)
Expand All @@ -1356,7 +1356,7 @@ def test_ignore_path_recursive(self):
[
join(HERE, "regrtest_data", "directory"),
"--recursive=y",
"--ignore-path=.*failing.*",
"--ignore-paths=.*failing.*",
],
code=0,
)
Expand Down

0 comments on commit 57014d6

Please sign in to comment.