From 942b38c4838f3ead6d8325ad32405d540dc96b42 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:31:38 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v3.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v3.4.0...v5.0.0) - [github.com/asottile/pyupgrade: v2.12.0 → v3.19.1](https://github.com/asottile/pyupgrade/compare/v2.12.0...v3.19.1) - [github.com/Lucas-C/pre-commit-hooks: v1.5.1 → v1.5.5](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.1...v1.5.5) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From b1ef87e08d0548b378c2dcdf4f9e89a853b60b3b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:35:56 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- domdf_python_tools/terminal.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }