diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 01f6a5e..243d909 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: - mdformat-gfm - mdformat-gfm-alerts - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.9 + rev: v0.14.10 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] diff --git a/dynamic_filenames/__init__.py b/dynamic_filenames/__init__.py index df5128e..ce0e12c 100644 --- a/dynamic_filenames/__init__.py +++ b/dynamic_filenames/__init__.py @@ -49,7 +49,8 @@ def __format__(self, format_spec): ) if ftype == "base64": return ( - base64.urlsafe_b64encode(self.bytes) + base64 + .urlsafe_b64encode(self.bytes) .decode("utf-8") .rstrip("=\n")[:precision] )