Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (spacetelescope#259)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: William Jamieson <wjamieson@stsci.edu>
  • Loading branch information
pre-commit-ci[bot] and WilliamJamieson authored Aug 16, 2023
1 parent f187863 commit 5dbd4a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 5dbd4a2

Please sign in to comment.