Skip to content

Commit

Permalink
fix ruff issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbhughes committed Aug 19, 2024
1 parent b41c591 commit 2dd0e93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ exclude: "\\.asdf$"
repos:
# This should be before any formatting hooks like isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.7"
# Ruff version.
rev: v0.6.1
hooks:
# Run the linter.
- id: ruff
args: ["--fix"]
types_or: [ python, pyi ]
args: [ --fix ]
- repo: https://github.com/PyCQA/isort
rev: 5.13.0
hooks:
Expand Down
10 changes: 5 additions & 5 deletions tests/test_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def test_find_catalog_in_image():
w.wcs.set_pv([(2, 1, 45.0)])
reduced_catalog = find_catalog_in_image(catalog, w, image_shape=(2048, 1024))
assert len(reduced_catalog) == 13_459
assert np.all(reduced_catalog['x_pix'] >= 0)
assert np.all(reduced_catalog['x_pix'] < 2048)
assert np.all(reduced_catalog['y_pix'] >= 0)
assert np.all(reduced_catalog['y_pix'] < 1024)
assert np.all(reduced_catalog["x_pix"] >= 0)
assert np.all(reduced_catalog["x_pix"] < 2048)
assert np.all(reduced_catalog["y_pix"] >= 0)
assert np.all(reduced_catalog["y_pix"] < 1024)


@pytest.mark.slow()
@pytest.mark.slow
def test_download_catalog():
"""tests that the full catalog downloads"""
raw_hipparcos = load_raw_hipparcos_catalog()
Expand Down

0 comments on commit 2dd0e93

Please sign in to comment.