diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec60a234..aa7c56ef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,14 +8,14 @@ ci: autofix_commit_msg: "style: pre-commit fixes" repos: - - repo: https://github.com/psf/black - rev: "25.1.0" + - repo: https://github.com/psf/black-pre-commit-mirror + rev: "26.1.0" hooks: - id: black-jupyter args: ["--line-length", "100"] - repo: https://github.com/asottile/blacken-docs - rev: "1.19.1" + rev: "1.20.0" hooks: - id: blacken-docs additional_dependencies: [black==23.7.0] @@ -57,7 +57,7 @@ repos: # args: ["--fix", "--show-fixes"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.17.1" + rev: "v1.19.1" hooks: - id: mypy files: src @@ -76,7 +76,7 @@ repos: # )$ - repo: https://github.com/kynan/nbstripout - rev: 0.8.1 + rev: 0.9.1 hooks: - id: nbstripout args: [--extra-keys=metadata.kernelspec metadata.language_info.version] diff --git a/astrophot/fit/base.py b/astrophot/fit/base.py index be9a2e56..9190ad9f 100644 --- a/astrophot/fit/base.py +++ b/astrophot/fit/base.py @@ -7,7 +7,6 @@ from .. import AP_config - __all__ = ["BaseOptimizer"] diff --git a/astrophot/models/galaxy_model_object.py b/astrophot/models/galaxy_model_object.py index bbe2ec57..daafa63f 100644 --- a/astrophot/models/galaxy_model_object.py +++ b/astrophot/models/galaxy_model_object.py @@ -14,7 +14,6 @@ from .model_object import Component_Model from ._shared_methods import select_target - __all__ = ["Galaxy_Model"] diff --git a/astrophot/models/psf_model_object.py b/astrophot/models/psf_model_object.py index 18614e68..7dfad1ca 100644 --- a/astrophot/models/psf_model_object.py +++ b/astrophot/models/psf_model_object.py @@ -15,7 +15,6 @@ from ..param import Parameter_Node from ..errors import SpecificationConflict - __all__ = ["PSF_Model"] diff --git a/astrophot/models/sersic_model.py b/astrophot/models/sersic_model.py index 3bd1ae90..176b6012 100644 --- a/astrophot/models/sersic_model.py +++ b/astrophot/models/sersic_model.py @@ -16,7 +16,6 @@ from ..utils.parametric_profiles import sersic_np from ..utils.conversions.functions import sersic_Ie_to_flux_torch - __all__ = [ "Sersic_Galaxy", "Sersic_PSF", diff --git a/astrophot/plots/image.py b/astrophot/plots/image.py index 9a3cb89d..4423606d 100644 --- a/astrophot/plots/image.py +++ b/astrophot/plots/image.py @@ -12,7 +12,6 @@ from ..utils.conversions.units import flux_to_sb from .visuals import * - __all__ = ["target_image", "psf_image", "model_image", "residual_image", "model_window"] diff --git a/tests/test_window_list.py b/tests/test_window_list.py index c1b88d98..7b306622 100644 --- a/tests/test_window_list.py +++ b/tests/test_window_list.py @@ -3,7 +3,6 @@ import numpy as np import torch - ###################################################################### # Window List Object ######################################################################