Skip to content

Commit 785c7ba

Browse files
committed
Make glob patterns recursive
1 parent 6938428 commit 785c7ba

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 2.0.3
4+
- Make glob patterns recursive
5+
36
## 2.0.2
47
- Fixed version mismatch
58

pylint_per_file_ignores/_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ def load_configuration(linter: PyLinter) -> None:
104104
for pattern, rules_str in config.items():
105105
if pattern.startswith("\n"):
106106
pattern = pattern[1:]
107-
files = [Path(file).absolute() for file in glob.glob(pattern)]
107+
files = [Path(file).absolute() for file in glob.glob(pattern, recursive=True)]
108108
rules = [rule.strip() for rule in rules_str.split(",")]
109109
_augment_add_message(linter, rules=rules, files=files)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pylint-per-file-ignores"
7-
version = "2.0.2"
7+
version = "2.0.3"
88
description = "A pylint plugin to ignore error codes per file."
99
authors = [
1010
{ name = "Christopher Pickering", email= "christopher@going.bg"},

0 commit comments

Comments
 (0)