From 3e85c6e42182cba29f1fc31b3dad18a1f669a756 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 14 Sep 2024 02:44:50 +0200 Subject: [PATCH] mypy --- spcd/__init__.py | 2 +- spcd/cmd.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/spcd/__init__.py b/spcd/__init__.py index 5114a6a..11db87f 100644 --- a/spcd/__init__.py +++ b/spcd/__init__.py @@ -39,7 +39,7 @@ def clone_project_branch() -> None: project.branch, "--", project.url, - project.root, + str(project.root), ) diff --git a/spcd/cmd.py b/spcd/cmd.py index 9df7ed3..fe00db4 100644 --- a/spcd/cmd.py +++ b/spcd/cmd.py @@ -18,12 +18,10 @@ def spcd_browse_workspace() -> None: def spcd_build_project() -> None: """Perform the actual building process.""" for extension in ["py", "sh"]: - path = Path(project.root) / f"build.{extension}" + path = project.root / f"build.{extension}" if path.exists(): - ps.run(path) + ps.run(str(path)) break - else: - pass def spcd_check_project() -> None: