diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 15d1d86..6f2c632 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: reformat-pyproject - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -62,7 +62,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/asottile/pyupgrade - rev: v2.12.0 + rev: v3.19.1 hooks: - id: pyupgrade args: @@ -70,7 +70,7 @@ repos: - --keep-runtime-typing - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.1 + rev: v1.5.5 hooks: - id: remove-crlf - id: forbid-crlf diff --git a/domdf_python_tools/terminal.py b/domdf_python_tools/terminal.py index a8a09f8..35cf3bf 100644 --- a/domdf_python_tools/terminal.py +++ b/domdf_python_tools/terminal.py @@ -186,8 +186,7 @@ def __exit__(self, *args, **kwargs): new_locals = { k: v - for k, - v in self.parent_frame.f_locals.items() # type: ignore + for k, v in self.parent_frame.f_locals.items() # type: ignore if k not in self.locals_on_entry }