Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #194

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
- id: isort
exclude: '(notebooks|attic|benchmark|testdata)/.*'
- repo: 'https://github.com/psf/black'
rev: 23.12.1
rev: 24.2.0
hooks:
- id: black
exclude: '(notebooks|attic|benchmark|testdata)/.*'
36 changes: 20 additions & 16 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,15 @@
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [(
master_doc,
"dysh.tex",
"dysh Documentation",
["Marc Pound", "Victoria Catlett", "Peter Teuben"],
"manual",
)]
latex_documents = [
(
master_doc,
"dysh.tex",
"dysh Documentation",
["Marc Pound", "Victoria Catlett", "Peter Teuben"],
"manual",
)
]


# -- Options for manual page output ------------------------------------------
Expand All @@ -185,15 +187,17 @@
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [(
master_doc,
"dysh",
"dysh Documentation",
author,
"dysh",
"One line description of project.",
"Miscellaneous",
)]
texinfo_documents = [
(
master_doc,
"dysh",
"dysh Documentation",
author,
"dysh",
"One line description of project.",
"Miscellaneous",
)
]

# The reST default role (used for this markup: `text`) to use for all
# documents. Set to the "smart" one.
Expand Down
2 changes: 1 addition & 1 deletion src/dysh/fits/gb20mfitsload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Load SDFITS files produced for GBO's 20m telescope """
"""Load SDFITS files produced for GBO's 20m telescope"""

from dysh.fits.sdfitsload import SDFITSLoad

Expand Down
2 changes: 1 addition & 1 deletion src/dysh/fits/sdfitsload.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Load generic SDFITS files
- Not typically used directly. Sub-class for specific telescope SDFITS flavors.
- Not typically used directly. Sub-class for specific telescope SDFITS flavors.
"""

# import copy
Expand Down
30 changes: 16 additions & 14 deletions src/dysh/spectra/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,20 +441,22 @@ def make_spectrum(cls, data, meta, use_wcs=True, observer_location=None):
"""
# @TODO generic check_required method since I now have this code in two places (coordinates/core.py).
# should we also require DATE-OBS or MJD-OBS?
_required = set([
"CRVAL1",
"CRVAL2",
"CRVAL3",
"CTYPE1",
"CTYPE2",
"CTYPE3",
"CUNIT1",
"CUNIT2",
"CUNIT3",
"VELOCITY",
"EQUINOX",
"RADESYS",
])
_required = set(
[
"CRVAL1",
"CRVAL2",
"CRVAL3",
"CTYPE1",
"CTYPE2",
"CTYPE3",
"CUNIT1",
"CUNIT2",
"CUNIT3",
"VELOCITY",
"EQUINOX",
"RADESYS",
]
)

# for k in _required:
# print(f"{k} {k in header}")
Expand Down
Loading