diff --git a/src/ghga_connector/cli.py b/src/ghga_connector/cli.py index 1d315e2e..d815573c 100644 --- a/src/ghga_connector/cli.py +++ b/src/ghga_connector/cli.py @@ -55,9 +55,9 @@ def failure(self, message: str): def exception_hook( - type_: BaseException, # pylint: disable=unused-argument + type_: BaseException, value: BaseException, - traceback: Union[TracebackType, None], # pylint: disable=unused-argument + traceback: Union[TracebackType, None], message_display: CLIMessageDisplay, ): """When debug mode is NOT enabled, gets called to perform final error handling @@ -131,7 +131,7 @@ def configure_upload(debug: bool = False): @cli.command(no_args_is_help=True) -def download( # pylint: disable=too-many-arguments,too-many-locals +def download( *, output_dir: Path = typer.Option( ..., help="The directory to put the downloaded files into." diff --git a/src/ghga_connector/core/api_calls/work_package.py b/src/ghga_connector/core/api_calls/work_package.py index 66b31f11..efe8bacc 100644 --- a/src/ghga_connector/core/api_calls/work_package.py +++ b/src/ghga_connector/core/api_calls/work_package.py @@ -100,7 +100,7 @@ def _check_public_key(self, token: str): )["user_public_crypt4gh_key"] != base64.b64encode( self.my_public_key ).decode("ascii") - except Exception: # pylint: disable=broad-exception-caught + except Exception: mismatch = False if mismatch: raise exceptions.PubKeyMismatchError() diff --git a/src/ghga_connector/core/batch_processing.py b/src/ghga_connector/core/batch_processing.py index 370ffed5..d7620a6d 100644 --- a/src/ghga_connector/core/batch_processing.py +++ b/src/ghga_connector/core/batch_processing.py @@ -213,7 +213,7 @@ def _check_wait_time(self, *, max_wait_time: int): @dataclass -class FileStager: # pylint: disable=too-many-instance-attributes +class FileStager: """Utility class to deal with file staging in batch processing.""" message_display: AbstractMessageDisplay diff --git a/src/ghga_connector/core/main.py b/src/ghga_connector/core/main.py index 08aef285..7ab3c04c 100644 --- a/src/ghga_connector/core/main.py +++ b/src/ghga_connector/core/main.py @@ -37,7 +37,7 @@ from ghga_connector.core.upload import run_upload -async def upload( # noqa C901, pylint: disable=too-many-statements,too-many-branches +async def upload( # noqa C901 *, api_url: str, file_id: str,