Skip to content

Commit

Permalink
Remove pylint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Dec 14, 2023
1 parent 3b2a84b commit 5f711d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/ghga_connector/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion src/ghga_connector/core/api_calls/work_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/ghga_connector/core/batch_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ghga_connector/core/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5f711d8

Please sign in to comment.