From 657e8b1e4ce8762125ae33e788cc06b3b4dae6c8 Mon Sep 17 00:00:00 2001 From: Tiara Rodney Date: Sat, 6 Jun 2026 16:15:41 +0200 Subject: [PATCH] todo(21): done parse_base_url and parse_repo_name accept SCP-style URLs for any host: the bitbucket.org-only ValueError is removed, SCP-style format validation (colon required, no scheme) retained, Bitbucket behavior unchanged. parse_repo_name's stale copy-pasted docstring corrected. Additionally parse_base_url now returns str as annotated (was Path), eliminating the mypy return-value error. 10 unit tests cover Bitbucket-, Forgejo- and GitHub-shaped URLs, .git suffix handling, str return type, and both rejection cases; 106/106 pass via tox -e unit-py313 with vcs/git.py down to 4 pre-existing baseline mypy errors. --- TODO | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TODO b/TODO index 82a0626..5cb99ce 100644 --- a/TODO +++ b/TODO @@ -284,7 +284,7 @@ Content-Type: application/issue ID: 21 Type: feature Title: relax host restriction in vcs.git parse_base_url and parse_repo_name -Status: in-progress +Status: done Priority: high Created: 2026-06-06 Relationships: