Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#74)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0)
- [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.6](astral-sh/ruff-pre-commit@v0.1.4...v0.1.6)

* rtd
* fix array2string
* fix make_getter

Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] and nstarman authored Dec 6, 2023
1 parent de28d95 commit cc7e23a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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:
Expand Down
24 changes: 24 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -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: []
15 changes: 0 additions & 15 deletions .readthedocs.yml

This file was deleted.

9 changes: 3 additions & 6 deletions discO/utils/vectorfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
),
Expand Down

0 comments on commit cc7e23a

Please sign in to comment.