Skip to content

Commit

Permalink
more precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Dec 5, 2024
1 parent 76f4391 commit 6a1181b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/myint/docformatter
rev: v1.7.5
- repo: https://github.com/PyCQA/docformatter
rev: master
hooks:
- id: docformatter
args: ["--in-place", "--pre-summary-newline", "--make-summary-multi"]
Expand All @@ -16,7 +16,7 @@ repos:
]
exclude: ".*(.fits|.fts|.fit|.txt|tca.*|extern.*|.rst|.md|docs/conf.py)$"
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.6.9"
rev: "v0.8.2"
hooks:
- id: ruff
args: ["--fix", "--unsafe-fixes"]
Expand All @@ -41,6 +41,6 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.3.3
rev: v3.4.2
hooks:
- id: prettier
2 changes: 1 addition & 1 deletion irispy/data/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import irispy

__all__ = ["rootdir", "file_list", "get_test_filepath"]
__all__ = ["file_list", "get_test_filepath", "rootdir"]

rootdir = Path(irispy.__file__).parent / "data" / "test"
file_list = str(Path(rootdir).glob("/*.[!p]*"))
Expand Down
2 changes: 1 addition & 1 deletion irispy/spectrograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from irispy.utils.constants import SPECTRAL_BAND
from irispy.visualization import Plotter, _set_axis_colors

__all__ = ["Collection", "SpectrogramCube", "SpectrogramCubeSequence", "SGMeta"]
__all__ = ["Collection", "SGMeta", "SpectrogramCube", "SpectrogramCubeSequence"]


class Collection(NDCollection):
Expand Down
6 changes: 3 additions & 3 deletions irispy/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import astropy.units as u

__all__ = [
"BAD_PIXEL_VALUE_SCALED",
"BAD_PIXEL_VALUE_UNSCALED",
"DN_UNIT",
"READOUT_NOISE",
"RADIANCE_UNIT",
"READOUT_NOISE",
"SLIT_WIDTH",
"BAD_PIXEL_VALUE_SCALED",
"BAD_PIXEL_VALUE_UNSCALED",
]

# The following value is only appropriate for byte scaled images
Expand Down
2 changes: 1 addition & 1 deletion irispy/utils/spectrograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
from irispy.utils.utils import get_interpolated_effective_area

__all__ = [
"calculate_photons_per_sec_to_radiance_factor",
"convert_between_DN_and_photons",
"convert_or_undo_photons_per_sec_to_radiance",
"calculate_photons_per_sec_to_radiance_factor",
"reshape_1D_wavelength_dimensions_for_broadcast",
]

Expand Down
6 changes: 3 additions & 3 deletions irispy/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
from irispy.utils.response import get_iris_response

__all__ = [
"get_detector_type",
"get_interpolated_effective_area",
"calculate_dust_mask",
"calculate_uncertainty",
"gaussian1d_on_linear_bg",
"get_detector_type",
"get_interpolated_effective_area",
"image_clipping",
"calculate_uncertainty",
]


Expand Down
2 changes: 1 addition & 1 deletion irispy/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from mpl_animators import ArrayAnimatorWCS
from ndcube.visualization.mpl_plotter import MatplotlibPlotter

__all__ = ["_set_axis_colors", "Plotter", "CustomArrayAnimatorWCS"]
__all__ = ["CustomArrayAnimatorWCS", "Plotter", "_set_axis_colors"]


def _set_axis_colors(ax):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ classifiers = [
]
dependencies = [
'dkist>=1.0.0',
'ndcube>=2.2.3',
'ndcube @ git+https://github.com/sunpy/ndcube@YOLO',
'pandas>=1.3.3',
'scipy>=1.7.0',
'sunpy>=6.0.0',
Expand Down

0 comments on commit 6a1181b

Please sign in to comment.