Skip to content

Commit 357b9dc

Browse files
author
Sam Kagan
committed
Fixed bug #65 where glob'd files weren't used
1 parent 2bf48ff commit 357b9dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bumpversion/config.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,12 @@ def resolved_filemap(self) -> Dict[str, FileConfig]:
107107
def files_to_modify(self) -> List[FileConfig]:
108108
"""Return a list of files to modify."""
109109
files_not_excluded = [
110-
file_cfg.filename for file_cfg in self.files if file_cfg.filename not in self.excluded_paths
110+
file_cfg.filename
111+
for file_cfg in self.resolved_filemap.values()
112+
if file_cfg.filename not in self.excluded_paths
111113
]
112114
inclusion_set = set(self.included_paths) | set(files_not_excluded)
113-
return [file_cfg for file_cfg in self.files if file_cfg.filename in inclusion_set]
115+
return [file_cfg for file_cfg in self.resolved_filemap.values() if file_cfg.filename in inclusion_set]
114116

115117
@property
116118
def version_config(self) -> "VersionConfig":

0 commit comments

Comments
 (0)