From 6d69a45905a58d80956b3102a19db87ad7e34c7b Mon Sep 17 00:00:00 2001 From: Harpo Harbert Date: Thu, 3 Aug 2023 14:21:13 -0700 Subject: [PATCH] Fixes pytest args, lint errors --- .github/workflows/CI.yml | 4 ++-- fastclam/app.py | 4 ++-- fastclam/log.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 90dbb24..bc90375 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,8 +8,8 @@ jobs: uses: WGBH-MLA/.github/.github/workflows/pytest.yml@main secrets: inherit with: - pdm_args: -G test,ci - pytest_args: -n auto --nbmake -ra -s + pdm_args: -G test + pytest_args: -v lint: name: 👕 Lint diff --git a/fastclam/app.py b/fastclam/app.py index 98bd74a..2635028 100644 --- a/fastclam/app.py +++ b/fastclam/app.py @@ -76,7 +76,7 @@ def run_pipeline(pipeline: Pipeline) -> list | dict | str: log.debug(response.content) raise HTTPException( status_code=response.status_code, - detail=f'Unsuccessful response from {app}: {response.status_code} - {response.content}', + detail=f'Unsuccessful response from {app}: {response.status_code} - {response.content}', # noqa E501 ) content_type = response.headers.get('Content-Type') if 'application/json' in content_type: @@ -95,7 +95,7 @@ def run_pipeline(pipeline: Pipeline) -> list | dict | str: log.debug(response.content) raise MMIFException( status_code=499, - detail=f'Failed to parse XML from {app}: {response.status_code} - {response.content}', + detail=f'Failed to parse XML from {app}: {response.status_code} - {response.content}', # noqa E501 ) log.info(f'Ran {len(pipeline.files)} files through {len(pipeline.apps)} apps') diff --git a/fastclam/log.py b/fastclam/log.py index 752ce9a..b94eebb 100644 --- a/fastclam/log.py +++ b/fastclam/log.py @@ -5,7 +5,7 @@ handlers=[ { "sink": RichHandler(), - "format": "{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:{line} - {message}", + "format": "{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {name}:{function}:{line} - {message}", # noqa E501 } ] )