Skip to content

Commit

Permalink
point to astral-sh organisation; tidy some broken strings
Browse files Browse the repository at this point in the history
  • Loading branch information
rcomer committed Nov 15, 2023
1 parent a90d593 commit d4e38c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cf_units/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d4e38c8

Please sign in to comment.