From 5dbd4a282c42209abc8940117b1344b8ed6c1413 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 16 Aug 2023 12:36:09 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#259) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: William Jamieson --- .pre-commit-config.yaml | 2 +- tests/test_models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a1b79a72..da15b6e4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: args: ["--py38-plus"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.0.282' + rev: 'v0.0.284' hooks: - id: ruff args: ["--fix"] diff --git a/tests/test_models.py b/tests/test_models.py index f3ddfabc..8ead3025 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -552,7 +552,7 @@ def test_make_level2_image(): assert wfi_image.var_rnoise.dtype == np.float32 assert wfi_image.var_rnoise.unit == u.electron**2 / u.s**2 assert wfi_image.var_flat.dtype == np.float32 - assert type(wfi_image.cal_logs[0]) == str + assert isinstance(wfi_image.cal_logs[0], str) # Test validation wfi_image_model = datamodels.ImageModel(wfi_image) @@ -575,7 +575,7 @@ def test_make_level3_mosaic(): assert wfi_mosaic.var_rnoise.dtype == np.float32 assert wfi_mosaic.var_rnoise.unit == u.electron**2 / u.s**2 assert wfi_mosaic.var_flat.dtype == np.float32 - assert type(wfi_mosaic.cal_logs[0]) == str + assert isinstance(wfi_mosaic.cal_logs[0], str) # Test validation wfi_mosaic_model = datamodels.MosaicModel(wfi_mosaic)