diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7088015d..891a9770 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,12 +20,12 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.23.3 + rev: 0.26.3 hooks: - id: check-github-workflows - repo: https://github.com/executablebooks/mdformat - rev: 0.7.16 + rev: 0.7.17 hooks: - id: mdformat @@ -35,7 +35,7 @@ repos: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.281 + rev: v0.0.287 hooks: - id: ruff args: ["--fix"] diff --git a/jupyter_core/paths.py b/jupyter_core/paths.py index 1d60285a..79369f29 100644 --- a/jupyter_core/paths.py +++ b/jupyter_core/paths.py @@ -992,10 +992,8 @@ def secure_write(fname: str, binary: bool = False) -> Iterator[Any]: issue_insecure_write_warning() else: msg = ( - "Permissions assignment failed for secure file: '{file}'." - " Got '{permissions}' instead of '0o0600'.".format( - file=fname, permissions=oct(file_mode) - ) + f"Permissions assignment failed for secure file: '{fname}'." + f" Got '{oct(file_mode)}' instead of '0o0600'." ) raise RuntimeError(msg) yield f