diff --git a/Makefile b/Makefile index 859e207..3316e1b 100644 --- a/Makefile +++ b/Makefile @@ -37,3 +37,6 @@ lint-fix: .PHONY: lint-check lint-check: ruff check habanero + +format: + ruff format habanero diff --git a/habanero/cn/cn.py b/habanero/cn/cn.py index f26f143..f68135b 100644 --- a/habanero/cn/cn.py +++ b/habanero/cn/cn.py @@ -8,7 +8,7 @@ def content_negotiation( style: str = "apa", locale: str = "en-US", url: str = None, - **kwargs + **kwargs, ) -> str: """ Get citations in various formats from CrossRef diff --git a/habanero/counts/counts.py b/habanero/counts/counts.py index 3c6f506..fadbbc3 100644 --- a/habanero/counts/counts.py +++ b/habanero/counts/counts.py @@ -10,7 +10,7 @@ def citation_count( doi: str, url: str = "http://www.crossref.org/openurl/", key: str = "cboettig@ropensci.org", - **kwargs + **kwargs, ) -> int: """ Get a citation count with a DOI diff --git a/habanero/crossref/crossref.py b/habanero/crossref/crossref.py index eb6942f..a39198f 100644 --- a/habanero/crossref/crossref.py +++ b/habanero/crossref/crossref.py @@ -203,7 +203,7 @@ def works( cursor_max: float = 5000, progress_bar: bool = False, warn: bool = False, - **kwargs + **kwargs, ) -> dict: """ Search Crossref works @@ -357,7 +357,7 @@ def works( None, progress_bar, warn, - **kwargs + **kwargs, ) else: return Request( @@ -378,7 +378,7 @@ def works( cursor_max, None, progress_bar, - **kwargs + **kwargs, ).do_request(should_warn=warn) def members( @@ -398,7 +398,7 @@ def members( cursor_max: float = 5000, progress_bar: bool = False, warn: bool = False, - **kwargs + **kwargs, ) -> dict: """ Search Crossref members @@ -496,7 +496,7 @@ def members( None, progress_bar, warn, - **kwargs + **kwargs, ) def prefixes( @@ -515,7 +515,7 @@ def prefixes( cursor_max: float = 5000, progress_bar: bool = False, warn: bool = False, - **kwargs + **kwargs, ) -> dict: """ Search Crossref prefixes @@ -613,7 +613,7 @@ def prefixes( cursor_max=cursor_max, progress_bar=progress_bar, should_warn=warn, - **kwargs + **kwargs, ) def funders( @@ -633,7 +633,7 @@ def funders( cursor_max: float = 5000, progress_bar: bool = False, warn: bool = False, - **kwargs + **kwargs, ) -> dict: """ Search Crossref funders @@ -743,7 +743,7 @@ def funders( None, progress_bar, warn, - **kwargs + **kwargs, ) def journals( @@ -763,7 +763,7 @@ def journals( cursor_max: float = 5000, progress_bar: bool = False, warn: bool = False, - **kwargs + **kwargs, ) -> dict: """ Search Crossref journals @@ -868,7 +868,7 @@ def journals( None, progress_bar, warn, - **kwargs + **kwargs, ) def types( @@ -888,7 +888,7 @@ def types( cursor_max: float = 5000, progress_bar: bool = False, warn: bool = False, - **kwargs + **kwargs, ) -> dict: """ Search Crossref types @@ -972,7 +972,7 @@ def types( None, progress_bar, warn, - **kwargs + **kwargs, ) def licenses( @@ -983,7 +983,7 @@ def licenses( sort: str = None, order: str = None, facet: Union[str, bool] = None, - **kwargs + **kwargs, ) -> dict: """ Search Crossref licenses @@ -1028,7 +1028,7 @@ def licenses( None, None, None, - **kwargs + **kwargs, ) return res @@ -1081,7 +1081,7 @@ def registration_agency(self, ids: Union[List[str], str], **kwargs) -> list: None, None, True, - **kwargs + **kwargs, ) if not isinstance(res, list): k = [] @@ -1127,7 +1127,7 @@ def random_dois(self, sample: int = 10, **kwargs) -> list: None, None, None, - **kwargs + **kwargs, ) return [z["DOI"] for z in res["message"]["items"]] diff --git a/habanero/request_class.py b/habanero/request_class.py index ad35276..6e19d40 100644 --- a/habanero/request_class.py +++ b/habanero/request_class.py @@ -42,7 +42,7 @@ def __init__( cursor_max=None, agency=False, progress_bar=False, - **kwargs + **kwargs, ): self.mailto = mailto self.ua_string = ua_string