Skip to content

Commit

Permalink
Format with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
MetinSa committed Nov 6, 2023
1 parent 37c7ab8 commit 29ea086
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions zodipy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import contextlib

import pkg_resources

from zodipy import comps, source_params
from zodipy._contour import tabulate_density
from zodipy.model_registry import model_registry
from zodipy.zodipy import Zodipy

try:
__version__ = pkg_resources.get_distribution(__name__).version
except pkg_resources.DistributionNotFound: # pragma: no cover
...
contextlib.suppress(pkg_resources.DistributionNotFound)

__all__ = (
"Zodipy",
Expand Down
2 changes: 1 addition & 1 deletion zodipy/_emission.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from zodipy._ipd_dens_funcs import ComponentDensityFn

"""
Function that return the zodiacal emission at a step along all lines of sight given
Function that return the zodiacal emission at a step along all lines of sight given
a zodiacal model.
"""
GetCompEmissionAtStepFn = Callable[..., npt.NDArray[np.float64]]
Expand Down
2 changes: 1 addition & 1 deletion zodipy/_interpolate_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"InterplanetaryDustModelT", bound=InterplanetaryDustModel
)

"""Return the source parameters for a given bandpass and model.
"""Return the source parameters for a given bandpass and model.
Must match arguments in the emission fns."""
GetSourceParametersFn = Callable[
[Bandpass, InterplanetaryDustModelT, Callable],
Expand Down

0 comments on commit 29ea086

Please sign in to comment.