Skip to content

Commit 22d031c

Browse files
Updates from the package template (#186)
Co-authored-by: nabobalis <[email protected]> Co-authored-by: Nabil Freij <[email protected]>
1 parent 446c688 commit 22d031c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/sunpy/package-template",
3-
"commit": "15fdf534198e4f67f0a667af7d2367e93de181c5",
3+
"commit": "88a0a31eadf2be84895e32ffd792768c2863f7ca",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -32,7 +32,7 @@
3232
".github/workflows/sub_package_update.yml"
3333
],
3434
"_template": "https://github.com/sunpy/package-template",
35-
"_commit": "15fdf534198e4f67f0a667af7d2367e93de181c5"
35+
"_commit": "88a0a31eadf2be84895e32ffd792768c2863f7ca"
3636
}
3737
},
3838
"directory": null

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
# This should be before any formatting hooks like isort
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: "v0.11.12"
4+
rev: "v0.12.1"
55
hooks:
66
- id: ruff
77
args: ["--fix"]

sunpy_soar/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def search(self, *query, **kwargs):
4747
-------
4848
A ``QueryResponseTable`` instance containing the query result.
4949
"""
50-
from sunpy_soar._attrs import walker
50+
from sunpy_soar._attrs import walker # NOQA: PLC0415
5151

5252
query = and_(*query)
5353
queries = walker.create(query)
@@ -296,9 +296,9 @@ def _can_handle_query(cls, *query) -> bool:
296296
bool
297297
True if this client can handle the given query.
298298
"""
299-
from sunpy_soar.attrs import SOOP, Distance, Product
300-
required = {Distance} if any(isinstance(q, Distance) for q in query) else {a.Time}
299+
from sunpy_soar.attrs import SOOP, Distance, Product # NOQA: PLC0415
301300

301+
required = {Distance} if any(isinstance(q, Distance) for q in query) else {a.Time}
302302
optional = {a.Instrument, a.Detector, a.Wavelength, a.Level, a.Provider, Product, SOOP, Distance, a.Time}
303303
if not cls.check_attr_types_in_query(query, required, optional):
304304
return False
@@ -339,7 +339,7 @@ def load_dataset_values():
339339
dict
340340
The dictionary containing the values formed into attributes.
341341
"""
342-
from sunpy_soar.attrs import SOOP, Product
342+
from sunpy_soar.attrs import SOOP, Product # NOQA: PLC0415
343343

344344
# Instrument attrs
345345
attrs_path = pathlib.Path(__file__).parent / "data" / "attrs.json"

sunpy_soar/tests/test_sunpy_soar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def test_distance_search_remote_sensing():
311311
level = a.Level(2)
312312
distance = a.soar.Distance(0.28 * u.AU, 0.30 * u.AU)
313313
res = Fido.search(distance & instrument & product & level)
314-
assert res.file_num == 21
314+
assert res.file_num == 35
315315

316316

317317
def test_distance_search_insitu():

0 commit comments

Comments
 (0)