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:
parent
c7d7adc360
commit
657e8b1e4c
1 changed files with 1 additions and 1 deletions
2
TODO
2
TODO
|
|
@ -284,7 +284,7 @@ Content-Type: application/issue
|
||||||
ID: 21
|
ID: 21
|
||||||
Type: feature
|
Type: feature
|
||||||
Title: relax host restriction in vcs.git parse_base_url and parse_repo_name
|
Title: relax host restriction in vcs.git parse_base_url and parse_repo_name
|
||||||
Status: in-progress
|
Status: done
|
||||||
Priority: high
|
Priority: high
|
||||||
Created: 2026-06-06
|
Created: 2026-06-06
|
||||||
Relationships:
|
Relationships:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue