diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6465fbc..b3396a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -28,16 +28,16 @@ repos: rev: v1.5.5 hooks: - id: remove-crlf - - repo: https://github.com/psf/black - rev: 24.4.2 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.12.0 hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: 1.16.0 + rev: 1.20.0 hooks: - id: blacken-docs - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.5.0 + rev: v3.2.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/asottile/seed-isort-config @@ -45,6 +45,6 @@ repos: hooks: - id: seed-isort-config - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 7.0.0 hooks: - id: isort diff --git a/idesolver/idesolver.py b/idesolver/idesolver.py index da749c6..1369f5d 100644 --- a/idesolver/idesolver.py +++ b/idesolver/idesolver.py @@ -58,7 +58,7 @@ def global_error(y1: np.ndarray, y2: np.ndarray) -> float: def coerce_to_array( - to_coerce: Union[float, np.float64, complex, np.complex128, np.ndarray, list] + to_coerce: Union[float, np.float64, complex, np.complex128, np.ndarray, list], ) -> np.ndarray: """Coerce `to_coerce` into a numpy array""" return np.array(to_coerce, ndmin=1, copy=False) diff --git a/setup.cfg b/setup.cfg index 3b83915..566ccb2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,7 +14,6 @@ license_files = LICENSE classifiers = Development Status :: 5 - Production/Stable Intended Audience :: Science/Research - License :: OSI Approved :: GNU General Public License v3 (GPLv3) Operating System :: OS Independent Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only @@ -27,7 +26,7 @@ install_requires = numpy>=1.18 scipy>=1.4 importlib-metadata>=1.0;python_version < "3.8" -python_requires = >=3.8 +python_requires = >=3.10 [options.extras_require] docs =