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.
This commit is contained in:
Tiara Rodney 2026-06-06 16:15:41 +02:00
parent c7d7adc360
commit 657e8b1e4c
Signed by: tiara
GPG key ID: 5CD8EC1D46106723

2
TODO
View file

@ -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: