From 48bdcdc48a76cba0c93eaad3660544c93ab91b80 Mon Sep 17 00:00:00 2001 From: Ruth Comer Date: Wed, 15 Nov 2023 11:33:30 +0000 Subject: [PATCH] point to astral-sh organisation; tidy some broken strings --- .pre-commit-config.yaml | 2 +- cf_units/__init__.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f51515ae..5bdde7fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: sort-all types: [file, python] -- repo: https://github.com/charliermarsh/ruff-pre-commit +- repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.1.5" hooks: # Run the linter diff --git a/cf_units/__init__.py b/cf_units/__init__.py index bb639962..fdd5b4ec 100644 --- a/cf_units/__init__.py +++ b/cf_units/__init__.py @@ -1220,7 +1220,7 @@ def offset_by_time(self, origin): if not isinstance(origin, (float, (int,))): raise TypeError( - "a numeric type for the origin argument is" " required" + "a numeric type for the origin argument is required" ) try: ut_unit = _ud.offset_by_time(self.ut_unit, origin) @@ -1336,12 +1336,12 @@ def log(self, base): ut_unit = _ud.log(base, self.ut_unit) except TypeError: raise TypeError( - "A numeric type for the base argument is " " required" + "A numeric type for the base argument is required" ) except _ud.UdunitsError as exception: value_err = _ud_value_error( exception, - "Failed to calculate logorithmic base " f"of {self!r}", + f"Failed to calculate logorithmic base of {self!r}", ) raise value_err from None calendar = None