diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ad96f8..5a6b373 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,20 +23,20 @@ repos: - id: check-added-large-files - repo: https://github.com/rbubley/mirrors-prettier - rev: bc7af46104f0f5368b95878decf720f9f00c2559 # frozen: v3.4.2 + rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3 hooks: - id: prettier files: \.(html|md|yml|yaml|toml) args: [--prose-wrap=preserve] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 89c421dff2e1026ba12cdb9ebd731f4a83aa8021 # frozen: v0.8.6 + rev: 971923581912ef60a6b70dbf0c3e9a39563c9d47 # frozen: v0.11.4 hooks: - id: ruff args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: "193cd7d27cd571f79358af09a8fb8997e54f8fff" # frozen: v2.3.0 + rev: "63c8f8312b7559622c0d82815639671ae42132ac" # frozen: v2.4.1 hooks: - id: codespell diff --git a/lazy_loader/__init__.py b/lazy_loader/__init__.py index 05322a9..b717b7f 100644 --- a/lazy_loader/__init__.py +++ b/lazy_loader/__init__.py @@ -113,8 +113,8 @@ def __getattr__(self, x): raise ModuleNotFoundError( f"{self.__message}\n\n" "This error is lazily reported, having originally occurred in\n" - f' File {fd["filename"]}, line {fd["lineno"]}, in {fd["function"]}\n\n' - f'----> {"".join(fd["code_context"] or "").strip()}' + f" File {fd['filename']}, line {fd['lineno']}, in {fd['function']}\n\n" + f"----> {''.join(fd['code_context'] or '').strip()}" )