diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fcb089da..21923d33 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: - id: text-unicode-replacement-char - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 23.11.0 hooks: - id: black additional_dependencies: [toml] @@ -48,7 +48,7 @@ repos: additional_dependencies: [black] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.4" + rev: "v0.1.6" hooks: - id: ruff args: diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..d500b2a4 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,24 @@ +version: 2 + +build: + os: "ubuntu-20.04" + tools: + python: "3.11" + +sphinx: + builder: html + configuration: docs/conf.py + fail_on_warning: false + +# Install regular dependencies. +# Then, install special pinning for RTD. +python: + install: + - method: pip + path: . + extra_requirements: + - docs + - all + +# Don't build any extra formats +formats: [] diff --git a/.readthedocs.yml b/.readthedocs.yml deleted file mode 100644 index c35c6195..00000000 --- a/.readthedocs.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: 2 - -build: - image: latest - -python: - version: 3.8 - install: - - method: pip - path: . - extra_requirements: - - docs - - all - -formats: [] diff --git a/discO/utils/vectorfield.py b/discO/utils/vectorfield.py index 1c2dc34e..dc783a6e 100644 --- a/discO/utils/vectorfield.py +++ b/discO/utils/vectorfield.py @@ -40,11 +40,8 @@ from astropy.coordinates.representation import ( REPRESENTATION_CLASSES as _REP_CLSs, ) -from astropy.coordinates.representation import ( - BaseRepresentationOrDifferential, - _array2string, - _make_getter, -) +from astropy.coordinates.representation import BaseRepresentationOrDifferential +from astropy.coordinates.representation.base import _make_getter from erfa import ufunc as erfa_ufunc # PROJECT-SPECIFIC @@ -440,7 +437,7 @@ def scale_factors(self) -> T.Dict[str, QuantityType]: def __repr__(self) -> str: prefixstr = " " # TODO combine with points - arrstr = _array2string( + arrstr = np.array2string( np.lib.recfunctions.merge_arrays( (self.points._values, self._values), ),