From e6ef002f76c48a4881b685e3bc0a43670c79aa5b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:09:18 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b758901..60f6de4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.6 + rev: v0.9.1 hooks: # Run the linter. - id: ruff From a067519fbb77be6ae5f1143788dd21e6a5889927 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:09:26 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/py21cmsense/baseline_filters.py | 2 +- src/py21cmsense/units.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/py21cmsense/baseline_filters.py b/src/py21cmsense/baseline_filters.py index f7b1b8b..2a6fdfc 100644 --- a/src/py21cmsense/baseline_filters.py +++ b/src/py21cmsense/baseline_filters.py @@ -58,7 +58,7 @@ class BaselineRange(BaselineFilter): def _bl_max_vld(self, att, val): if val <= self.bl_min: raise ValueError( - "bl_max must be greater than bl_min, got " f"bl_min={self.bl_min} and bl_max={val}" + f"bl_max must be greater than bl_min, got bl_min={self.bl_min} and bl_max={val}" ) def __call__(self, bl: tp.Length) -> bool: diff --git a/src/py21cmsense/units.py b/src/py21cmsense/units.py index 1276dae..6a4b56e 100644 --- a/src/py21cmsense/units.py +++ b/src/py21cmsense/units.py @@ -44,8 +44,7 @@ def _check_type(self: Any, att: attr.Attribute, val: Any): raise UnitError(f"{att.name} must be an astropy Quantity!") if val.unit.physical_type != unit: raise un.UnitConversionError( - f"{att.name} must have physical type of '{unit}'. " - f"Got '{val.unit.physical_type}'" + f"{att.name} must have physical type of '{unit}'. Got '{val.unit.physical_type}'" ) return _check_type From d6c157a3ba926350ac973b2c3c5f944922cfd8fc Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Tue, 14 Jan 2025 12:26:12 +0100 Subject: [PATCH 3/3] ci: RTD config update --- .readthedocs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index aba41d7..762e7aa 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -17,6 +17,9 @@ build: conda: environment: docs/environment.yml +sphinx: + configuration: docs/conf.py + # Optionally set the version of Python and requirements required to build your docs python: install: