Skip to content

Commit

Permalink
Fixed bug callowayproject#65 where glob'd files weren't used
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kagan committed Oct 26, 2023
1 parent 2bf48ff commit 357b9dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bumpversion/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ def resolved_filemap(self) -> Dict[str, FileConfig]:
def files_to_modify(self) -> List[FileConfig]:
"""Return a list of files to modify."""
files_not_excluded = [
file_cfg.filename for file_cfg in self.files if file_cfg.filename not in self.excluded_paths
file_cfg.filename
for file_cfg in self.resolved_filemap.values()
if file_cfg.filename not in self.excluded_paths
]
inclusion_set = set(self.included_paths) | set(files_not_excluded)
return [file_cfg for file_cfg in self.files if file_cfg.filename in inclusion_set]
return [file_cfg for file_cfg in self.resolved_filemap.values() if file_cfg.filename in inclusion_set]

@property
def version_config(self) -> "VersionConfig":
Expand Down

0 comments on commit 357b9dc

Please sign in to comment.