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 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: 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