Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mypy static type checking to pydoclint #185

Merged
merged 15 commits into from
Dec 15, 2024
Prev Previous commit
Next Next commit
Fix violations in parse_config.py
jsh9 committed Dec 15, 2024
commit 5e84f42a9e2b96ed2e211c06dc06c83435b07191
6 changes: 3 additions & 3 deletions pydoclint/parse_config.py
Original file line number Diff line number Diff line change
@@ -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