Skip to content

Commit

Permalink
Fix violations in parse_config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jsh9 committed Dec 15, 2024
1 parent c1422fd commit 5e84f42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydoclint/parse_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ def findCommonParentFolder(
makeAbsolute: bool = True, # allow makeAbsolute=False just for testing
) -> Path:
"""Find the common parent folder of the given ``paths``"""
paths = [Path(path) for path in paths]
paths_: Sequence[Path] = [Path(path) for path in paths]

common_parent = paths[0]
for path in paths[1:]:
common_parent = paths_[0]
for path in paths_[1:]:
if len(common_parent.parts) > len(path.parts):
common_parent, path = path, common_parent

Expand Down

0 comments on commit 5e84f42

Please sign in to comment.