diff --git a/swh/loader/package/crates/loader.py b/swh/loader/package/crates/loader.py --- a/swh/loader/package/crates/loader.py +++ b/swh/loader/package/crates/loader.py @@ -211,6 +211,7 @@ url: str, artifacts: List[Dict[str, Any]], max_content_size: Optional[int] = None, + **kwargs, ): """Constructor @@ -235,7 +236,9 @@ } ] """ # noqa - super().__init__(storage=storage, url=url, max_content_size=max_content_size) + super().__init__( + storage=storage, url=url, max_content_size=max_content_size, **kwargs + ) self.url = url self.artifacts: Dict[str, Dict] = { artifact["version"]: artifact for artifact in artifacts diff --git a/swh/loader/package/crates/tasks.py b/swh/loader/package/crates/tasks.py --- a/swh/loader/package/crates/tasks.py +++ b/swh/loader/package/crates/tasks.py @@ -9,6 +9,6 @@ @shared_task(name=__name__ + ".LoadCrates") -def load_crates(*, url=None, artifacts: list): +def load_crates(**kwargs): """Load Rust crate package""" - return CratesLoader.from_configfile(url=url, artifacts=artifacts).load() + return CratesLoader.from_configfile(**kwargs).load()