diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c3fed9b..cab9d3e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell args: @@ -39,7 +39,7 @@ repos: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.4 hooks: - id: ruff args: ["--fix", "--show-fixes"] diff --git a/ctd/read.py b/ctd/read.py index c0afdc8..7d29a66 100644 --- a/ctd/read.py +++ b/ctd/read.py @@ -45,10 +45,7 @@ def _open_compressed(fname: Path) -> str: loader = loaders.get(extension) if loader is None: valid = ", ".join(loaders.keys()) - msg = ( - "Unrecognized file extension. " - f"Expected {valid}, got {extension}." - ) + msg = f"Unrecognized file extension. Expected {valid}, got {extension}." raise ValueError(msg) if extension == ".zip":