Skip to content

Commit 4846be9

Browse files
committed
Bump dependencies and checkers
1 parent 36e606e commit 4846be9

11 files changed

+20
-19
lines changed

Diff for: .github/workflows/codeql-analysis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v2
42+
uses: github/codeql-action/init@v3
4343
with:
4444
languages: ${{ matrix.language }}
4545
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +50,7 @@ jobs:
5050
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5151
# If this step fails, then you should remove it and run the build manually (see below)
5252
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v2
53+
uses: github/codeql-action/autobuild@v3
5454

5555
# ℹ️ Command-line programs to run using the OS shell.
5656
# 📚 https://git.io/JvXDl
@@ -64,4 +64,4 @@ jobs:
6464
# make release
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v2
67+
uses: github/codeql-action/analyze@v3

Diff for: .github/workflows/lint-and-build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ jobs:
4949
echo $Env:RUFF_VERSION
5050
echo "RUFF_VERSION=$Env:RUFF_VERSION" >> $Env:GITHUB_OUTPUT
5151
shell: pwsh
52-
- uses: astral-sh/ruff-action@v2
52+
- uses: astral-sh/ruff-action@v3
5353
with:
5454
version: ${{ steps.ruff_version.outputs.RUFF_VERSION }}
55+
- run: ruff format --check
5556
Pyright:
5657
runs-on: ${{ matrix.os }}
5758
strategy:

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: pretty-format-ini
2020
args: [--autofix]
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.8.0 # Must match requirements-dev.txt
22+
rev: v0.8.5 # Must match requirements-dev.txt
2323
hooks:
2424
- id: ruff
2525
args: [--fix]

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Easy to use image comparison based auto splitter for speedrunning on console or
1212
This program can be used to automatically start, split, and reset your preferred speedrun timer by comparing images to a capture region. This allows you to focus more on your speedrun and less on managing your timer. It also improves the accuracy of your splits. It can be used in tandem with any speedrun timer that accepts hotkeys (LiveSplit, WSplit, etc.), and can be integrated with LiveSplit.
1313

1414
<p align="center">
15-
<img src="/docs/2.2.2.gif" alt="Example" />
15+
![Example](/docs/2.2.2.gif)
1616
</p>
1717

1818
## Tutorial

Diff for: scripts/lint.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ $originalDirectory = $pwd
22
Set-Location "$PSScriptRoot/.."
33
$exitCodes = 0
44

5-
Write-Host "`nRunning formatting..."
6-
ruff format
7-
85
Write-Host "`nRunning Ruff ..."
96
ruff check --fix
107
$exitCodes += $LastExitCode
@@ -15,6 +12,9 @@ else {
1512
Write-Host "`Ruff passed" -ForegroundColor Green
1613
}
1714

15+
Write-Host "`nRunning formatting..."
16+
ruff format
17+
1818
$pyrightVersion = 'latest' # Change this if latest has issues
1919
Write-Host "`nRunning Pyright $pyrightVersion ..."
2020
$Env:PYRIGHT_PYTHON_FORCE_VERSION = $pyrightVersion

Diff for: scripts/requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
-r requirements.txt
1313
#
1414
# Linters & Formatters
15-
ruff>=0.8.0
15+
ruff>=0.8.5
1616
#
1717
# Types
1818
scipy-stubs>=1.14.1.1

Diff for: scripts/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ psutil>=6.0.0 # Python 3.13 support
1212
# PyAutoGUI # See install.ps1
1313
PyWinCtl>=0.0.42 # py.typed
1414
# When needed, dev builds can be found at https://download.qt.io/snapshots/ci/pyside/dev?C=M;O=D
15-
PySide6-Essentials<6.8.1 # Has typing issue with QMessageBox.warning https://bugreports.qt.io/browse/PYSIDE-2939
15+
PySide6-Essentials>=6.8.2 # Fixed typing issue with QMessageBox.warning
1616
scipy>=1.14.1 # Python 3.13 support
1717
tomli-w>=1.1.0 # Typing fixes
1818
typing-extensions>=4.4.0 # @override decorator support

Diff for: src/AutoSplit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def __auto_splitter(self): # noqa: C901,PLR0912,PLR0915
658658
while self.split_image_number < number_of_split_images:
659659
# Check if we are not waiting for the split delay to send the key press
660660
if self.waiting_for_split_delay:
661-
time_millis = int(round(time() * ONE_SECOND))
661+
time_millis = round(time() * ONE_SECOND)
662662
if time_millis < split_time:
663663
QApplication.processEvents()
664664
continue

Diff for: src/d3d11.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def query_interface(self, iid: uuid.UUID | str) -> "IUnknown":
4444
iid = uuid.UUID(iid)
4545

4646
ppv = wintypes.LPVOID()
47-
_iid = GUID.from_buffer_copy(iid.bytes_le)
48-
ret = self.QueryInterface(self, ctypes.byref(_iid), ctypes.byref(ppv))
47+
riid = GUID.from_buffer_copy(iid.bytes_le)
48+
ret = self.QueryInterface(self, ctypes.byref(riid), ctypes.byref(ppv))
4949

5050
if ret:
5151
raise ctypes.WinError(ret)

Diff for: src/hotkeys.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def send_command(autosplit: "AutoSplit", command: CommandStr):
104104
_send_hotkey(autosplit.settings_dict["skip_split_hotkey"])
105105
case "undo":
106106
_send_hotkey(autosplit.settings_dict["undo_split_hotkey"])
107-
case _: # pyright: ignore[reportUnnecessaryComparison]
107+
case _:
108108
raise KeyError(f"{command!r} is not a valid command")
109109

110110

Diff for: src/menu_bar.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -354,17 +354,17 @@ def __setup_bindings(self):
354354
)
355355

356356
# Debug screenshot selection checkboxes initial values and bindings
357-
_screenshot_on_setting = self._autosplit_ref.settings_dict["screenshot_on"]
357+
screenshot_on_setting = self._autosplit_ref.settings_dict["screenshot_on"]
358358
for command in _DEBUG_SCREENSHOT_COMMANDS:
359359
checkbox: QtWidgets.QCheckBox = getattr(self, f"screenshot_on_{command}_checkbox")
360360

361-
checkbox.setChecked(command in _screenshot_on_setting)
361+
checkbox.setChecked(command in screenshot_on_setting)
362362

363363
def add_or_del(checked: Literal[0, 2], command: CommandStr = command):
364364
if checked:
365-
_screenshot_on_setting.append(command)
365+
screenshot_on_setting.append(command)
366366
else:
367-
_screenshot_on_setting.remove(command)
367+
screenshot_on_setting.remove(command)
368368

369369
checkbox.stateChanged.connect(add_or_del)
370370

0 commit comments

Comments
 (0)