chore: add pathlib check

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2025-02-28 16:38:15 -05:00
committed by Henry Schreiner
parent 3e37148923
commit 783be9bc2f
6 changed files with 20 additions and 19 deletions
+1 -2
View File
@@ -7,7 +7,6 @@
from __future__ import annotations
import glob
import os
import subprocess
import sys
@@ -86,7 +85,7 @@ def bump_version() -> None:
actions = []
for path_pattern, version_pattern in config:
paths = [Path(p) for p in glob.glob(path_pattern)]
paths = list(Path().glob(path_pattern))
if not paths:
print(f"error: Pattern {path_pattern} didn't match any files")