From a3bf4c6881edcdfcec3c36157d3c802ff3be8e00 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Thu, 21 Dec 2023 10:16:49 +0000 Subject: [PATCH] Clean up some more uses of # noqa --- tests/test_reference_runs/test_pre_deployment.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/test_reference_runs/test_pre_deployment.py b/tests/test_reference_runs/test_pre_deployment.py index 42b19990b..cdd8a0f01 100644 --- a/tests/test_reference_runs/test_pre_deployment.py +++ b/tests/test_reference_runs/test_pre_deployment.py @@ -85,9 +85,13 @@ def validate_file( ref_ds = fref[dsname] out_ds = fout[dsname] if out_ds.shape != ref_ds.shape: - changed.append((dsname, f"Shape: {ref_ds.shape} -> {out_ds.shape}")) # noqa + changed.append(( + dsname, f"Shape: {ref_ds.shape} -> {out_ds.shape}" + )) elif out_ds.dtype != ref_ds.dtype: - changed.append((dsname, f"Dtype: {ref_ds.dtype} -> {out_ds.dtype}")) # noqa + changed.append(( + dsname, f"Dtype: {ref_ds.dtype} -> {out_ds.dtype}" + )) else: floaty = np.issubdtype(ref_ds.dtype, np.floating) \ or np.issubdtype(ref_ds.dtype, np.complexfloating) @@ -312,7 +316,7 @@ def test_xfel_calibrate( ) ) - report_name = out_folder / f"{test_key}_{datetime.now().strftime('%y%m%d_%H%M%S')}" # noqa + report_name = out_folder / f"{test_key}_{datetime.now():%y%m%d_%H%M%S}" cal_conf["report-to"] = str(report_name) -- GitLab