Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #246

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions src/capture_method/DesktopDuplicationCaptureMethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
Loading