From e3cefd2432d55ff02517554f4148930341b6bff1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 19:41:07 +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/macisamuele/language-formatters-pre-commit-hooks: v2.9.0 → v2.10.0](https://github.com/macisamuele/language-formatters-pre-commit-hooks/compare/v2.9.0...v2.10.0) - https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit - [github.com/astral-sh/ruff-pre-commit: v0.0.276 → v0.0.280](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.276...v0.0.280) --- .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 3b2c0b53..e47ae517 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,12 +12,12 @@ repos: args: [--fix=crlf] - id: check-case-conflict - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.9.0 + rev: v2.10.0 hooks: - id: pretty-format-ini args: [--autofix] - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.0.276" # Must match requirements-dev.txt + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: "v0.0.280" # Must match requirements-dev.txt hooks: - id: ruff args: [--fix] From 66aadf0c75fbba657be901a06bc230b9a1510f9e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 19:41:21 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/capture_method/DesktopDuplicationCaptureMethod.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/capture_method/DesktopDuplicationCaptureMethod.py b/src/capture_method/DesktopDuplicationCaptureMethod.py index cf5839e0..ee07ac11 100644 --- a/src/capture_method/DesktopDuplicationCaptureMethod.py +++ b/src/capture_method/DesktopDuplicationCaptureMethod.py @@ -44,11 +44,11 @@ def get_frame(self, autosplit: AutoSplit): return None, False left_bounds, top_bounds, *_ = get_window_bounds(hwnd) - self.desktop_duplication.display = [ + self.desktop_duplication.display = next( display for display in self.desktop_duplication.displays if display.hmonitor == hmonitor - ][0] + ) offset_x, offset_y, *_ = win32gui.GetWindowRect(hwnd) offset_x -= self.desktop_duplication.display.position["left"] offset_y -= self.desktop_duplication.display.position["top"]