gitlab: make url mandatory and add type

This commit is contained in:
Antoine R. Dumont (@ardumont) 2021-01-25 18:55:25 +01:00
parent d62e77c1b4
commit bea9d6d147
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
2 changed files with 2 additions and 1 deletions

View file

@ -93,7 +93,7 @@ class GitLabLister(Lister[GitLabListerState, PageResult]):
def __init__(
self,
scheduler,
url=None,
url: str,
instance: Optional[str] = None,
credentials: Optional[CredentialsType] = None,
incremental: bool = False,

View file

@ -17,6 +17,7 @@ lister_args = {
"api_token": "bogus",
},
"gitea": {"url": "https://try.gitea.io/api/v1/",},
"gitlab": {"url": "https://gitlab.ow2.org/api/v4", "instance": "ow2",},
}