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

February 2025 2.3.0 release #312

Merged
merged 81 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
8c7e7a6
Re-use AutoSplit reference from __init__
Avasam Dec 3, 2023
d996ff0
Improve BitBlt:
Avasam Dec 6, 2023
9d208c2
Update settings.json for Python & bump Ruff to 0.1.7
Avasam Dec 6, 2023
4d1b064
Improved types and None checks from library updates
Avasam Dec 8, 2023
24bdfaf
Use precise QtTimer types.
Avasam Dec 8, 2023
56f57bc
Don't send `is_old_image` boolean from `get_frame`
Avasam Dec 8, 2023
9e9db69
Avoid line-continuation
Avasam Dec 8, 2023
64f69a1
Ruff v0.1.7 format --preview acceptable formatting
Avasam Dec 8, 2023
0f2a0fa
Renormalize line endings to LF
Avasam Dec 8, 2023
989fae8
Important save detection + LiveSplit commands fixes
Avasam Dec 9, 2023
8950d43
Improve SelectWidgets
Avasam Dec 14, 2023
c036b5d
Fix Settings window being resizable
Avasam Dec 14, 2023
c81ab65
Bump version to 2.2.2
Avasam Dec 14, 2023
6064f29
Replace ctypes by existing pywin32 functions
Avasam Dec 14, 2023
b418129
Disable more autopep8 fixes handled by Ruff
Avasam Dec 14, 2023
84b8116
Turn reportUnknownMemberType back on
Avasam Dec 19, 2023
726adc1
Remove dependency on requests (#267)
Avasam Dec 19, 2023
28adf88
Moved multiprocessing stubs to https://github.com/python/typeshed/pul…
Avasam Dec 19, 2023
63b48aa
Merge branch 'dev' of https://github.com/Toufool/AutoSplit into dev
Avasam Dec 19, 2023
f2e6372
Re-implement `pHash` comparison using `cv2`. Drop `imagehash`+`Pillow…
Avasam Dec 19, 2023
51dab29
Various doc and config changes backported from linux branch
Avasam Dec 19, 2023
13da28a
Merge branch 'dev' of https://github.com/Toufool/AutoSplit into dev
Avasam Dec 19, 2023
8e75919
Reload settings window when loading new profile
Avasam Dec 19, 2023
6aa4da7
Update reload_start_image functions names
Avasam Dec 19, 2023
13e261b
[pre-commit.ci] pre-commit autoupdate (#269)
pre-commit-ci[bot] Jan 1, 2024
5542598
Fix new Ruff 0.1.10 failure
Avasam Jan 5, 2024
c13014c
Squashed commit of the following:
Avasam Jan 5, 2024
ecdc38f
Update opencv-python-headless to 4.9.0.80
Avasam Jan 6, 2024
dcdb566
Update Ruff and Pyright
Avasam Jan 29, 2024
7a0d8ab
Improve contribution resources
Avasam Feb 3, 2024
b4214db
Prefer `functools.partial` over a temporary named method to avoid lam…
Avasam Feb 3, 2024
e4efaba
Make constant sequences immutable (tuple)
Avasam Feb 9, 2024
099443c
Let compile_resources script work with downloaded repos
Avasam Feb 9, 2024
a6a1a03
Test dependencies and linting update
Avasam Mar 9, 2024
02cbb97
Update screenshot folder validation
Avasam Mar 9, 2024
2029997
Apply flake8-boolean-trap rule
Avasam Mar 9, 2024
8af6f28
Split-off tutorial from main README
Avasam Mar 9, 2024
a57b373
Remove outdated sonar checks from archived fork
Avasam Mar 9, 2024
4ccb7cd
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 3, 2024
82fa2e5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 3, 2024
a372e5d
Merge pull request #282 from Toufool/pre-commit-ci-update-config
Avasam Jun 15, 2024
d133107
Fix a crash by ignoring devices that throw `ValueError: NULL pointer …
Avasam Jun 15, 2024
4f47abb
implemented text recognition (ocr) (#272)
ston1th Jun 16, 2024
cfb1ad5
Update GitHub Actions
Avasam Jun 16, 2024
d9b0adb
Build Linux on Python 3.12 and update QT version + various fixes (#287)
Avasam Jun 16, 2024
6193f47
Additional fixes for WSLg and Ubuntu 20.04
Avasam Jun 17, 2024
413afca
Fix issues with saving and reading images w/ non-english filepaths
Avasam Aug 2, 2024
e61be26
Update all linting tools
Avasam Aug 2, 2024
a4cd263
Allow screenshot hotkeys when autocontrolled
Avasam Aug 2, 2024
3e33b23
Fix typo and get pyright version from lint script (#291)
Avasam Aug 6, 2024
2ea4c28
Sync Ruff configs with Beslogic/shared-configs (#293)
Avasam Aug 18, 2024
8c2949b
Switch to Ruff formatting (#259)
Avasam Aug 18, 2024
e01bea8
interpolation=cv2.INTER_NEAREST in compare_with_capture (#290)
Avasam Aug 30, 2024
18b97cb
Add placeholder text to screenshot folder indicating it defaults to S…
Avasam Sep 21, 2024
cec2f91
Add "screenshot on ..." checkboxes (#294)
Avasam Sep 21, 2024
36511e5
Pin comtypes<1.4.5 to work around https://github.com/pyinstaller/pyin…
Avasam Sep 21, 2024
711850e
Merge branch 'dev' of https://github.com/Toufool/AutoSplit into dev
Avasam Sep 21, 2024
f890ae3
Simplify pyright version obtention (#295)
Avasam Sep 21, 2024
3773f47
Update minimal Python version to 3.11: (#296)
Avasam Sep 22, 2024
5cba9b4
misc setup updates
Avasam Oct 2, 2024
c392b9f
Merge branch 'dev' of https://github.com/Toufool/AutoSplit into dev
Avasam Oct 2, 2024
7083967
Ignore folders, system and hidden files (#297)
Avasam Oct 2, 2024
8e30278
Fixed type-only annotations references
Avasam Oct 5, 2024
d74bd20
Don't check the `UF_HIDDEN` flag on Windows
Avasam Oct 8, 2024
eea402c
Migrate from winsdk to PyWinRT and bump tomli-w (#300)
Avasam Oct 9, 2024
aa63fff
Fix Ruff format badge
Avasam Oct 9, 2024
65b24d6
Migrate to typed-D3DShot (#302)
Avasam Oct 9, 2024
bd6cf54
Bump pre commit hooks (#301)
Avasam Oct 9, 2024
ef52113
Resolve WGC technical limitation (#303)
Avasam Oct 20, 2024
9588834
Complete `scipy.fft._realtransforms.dct` annotation
Avasam Oct 20, 2024
a2371bc
Use scipy-stubs (#304)
Avasam Oct 23, 2024
20ef487
Add support for Python 3.13 (#298)
Avasam Oct 25, 2024
83a73e9
Bump Ruff to 0.8.0
Avasam Nov 22, 2024
231972d
Merge branch 'dev' of https://github.com/Toufool/AutoSplit into dev
Avasam Nov 22, 2024
06164f8
New 2.2.2 dark mode gif (#306)
Toufool Nov 29, 2024
4444bb5
Use astral-sh/ruff-action@v2 (#309)
Avasam Dec 4, 2024
36e606e
Update branch reference from "master" to "main" in code
Avasam Feb 2, 2025
4846be9
Bump dependencies and checkers
Avasam Feb 2, 2025
f81951e
Bump version to 2.3
Avasam Feb 2, 2025
fd456d3
Create LICENSE
Avasam Oct 9, 2024
d2346a1
Merge branch 'main' of https://github.com/Toufool/AutoSplit into dev
Avasam Feb 2, 2025
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
20 changes: 11 additions & 9 deletions .github/ISSUE_TEMPLATE/bug-or-crash-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,40 @@ assignees: ''

---

**Describe the bug**
### Describe the bug
<!-- A clear and concise description of what the bug is. -->

**To Reproduce**
### To Reproduce

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
### Expected behavior
<!-- A clear and concise description of what you expected to happen. -->

**Screenshots and recordings**
### Screenshots and recordings
<!-- If applicable, add screenshots and/or recordings to help explain your problem. -->

**Traceback or Crash Report**
### Traceback or Crash Report

If AutoSplit showed an exception traceback, please paste it here:

```
```py

```
<!-- If AutoSplit crashed and closed without saying anything, please check Windows' Event Viewer, under Windows Logs > Application, for any recent error relating to AutoSplit -->

**Version (please complete the following information):**
### Version (please complete the following information)

- OS: [e.g. Windows 10.0.19045]
- AutoSplit: [e.g. v2.0.0]

**AutoSplit Profile and Split Images**
### AutoSplit Profile and Split Images
<!-- Please include your AutoSplit profile `.toml` file. You can also add your Split Images if relevant. -->

**Additional context**
### Additional context
<!-- Add any other context about the problem here. -->
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ assignees: ''

---

**Is your feature request related to a problem? Please describe.**
### Is your feature request related to a problem? Please describe
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

**Describe the solution you'd like**
### Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->

**Describe alternatives you've considered**
### Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've considered. -->

**Additional context**
### Additional context
<!-- Add any other context or screenshots about the feature request here. -->
<!-- Please include an AutoSplit profile `.toml` file and/or Split Images if relevant. -->
12 changes: 6 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [main, master, develop, dev]
branches: [main, dev*]
pull_request:
# The branches below must be a subset of the branches above
branches: [develop, dev]
branches: [dev*]
schedule:
- cron: "26 13 * * 6"

Expand All @@ -35,11 +35,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

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

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
68 changes: 38 additions & 30 deletions .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
push:
branches:
- main
- master
- dev*
paths:
- "**.py"
Expand All @@ -21,7 +20,6 @@ on:
pull_request:
branches:
- main
- master
- dev*
paths:
- "**.py"
Expand All @@ -40,59 +38,69 @@ concurrency:

jobs:
ruff:
runs-on: windows-latest
strategy:
fail-fast: false
# Ruff is version and platform sensible
matrix:
python-version: ["3.10", "3.11", "3.12"]
runs-on: ubuntu-22.04
steps:
- name: Checkout ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "scripts/requirements*.txt"
- run: scripts/install.ps1
uses: actions/checkout@v4
- name: Get Ruff version
id: ruff_version
run: |
$Env:RUFF_VERSION=Select-String -path scripts/requirements-dev.txt -pattern 'ruff ?([=<>~]?= ?[\d\.]+)' | %{ $_.Matches[0].Groups[1].Value }
echo $Env:RUFF_VERSION
echo "RUFF_VERSION=$Env:RUFF_VERSION" >> $Env:GITHUB_OUTPUT
shell: pwsh
- run: ruff check .
- uses: astral-sh/ruff-action@v3
with:
version: ${{ steps.ruff_version.outputs.RUFF_VERSION }}
- run: ruff format --check
Pyright:
runs-on: windows-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# Pyright is version and platform sensible
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [windows-latest, ubuntu-22.04]
python-version: ["3.11", "3.12", "3.13"]
steps:
- name: Checkout ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "scripts/requirements*.txt"
- run: scripts/install.ps1
shell: pwsh
- name: Get pyright version
id: pyright_version
run: |
PYRIGHT_VERSION=$(grep '$pyrightVersion = ' 'scripts/lint.ps1' | cut -d "#" -f 1 | cut -d = -f 2 | tr -d " '")
echo pyright version: "${PYRIGHT_VERSION}"
echo PYRIGHT_VERSION="${PYRIGHT_VERSION}" >> "${GITHUB_OUTPUT}"
shell: bash
- name: Analysing the code with Pyright
uses: jakebailey/pyright-action@v1
uses: jakebailey/pyright-action@v2
with:
version: ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
working-directory: src/
python-version: ${{ matrix.python-version }}
Build:
runs-on: windows-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# Only the Python version we plan on shipping matters.
matrix:
python-version: ["3.11", "3.12"]
os: [windows-latest, ubuntu-22.04]
python-version: ["3.12", "3.13"]
include:
- os: ubuntu-22.04
python-version: "3.11" # I had some Qt Wayland issues on 3.12 for ubuntu-22.04 iirc. TODO: test it
steps:
- name: Checkout ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
Expand All @@ -102,15 +110,15 @@ jobs:
- run: scripts/build.ps1
shell: pwsh
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: AutoSplit (Python ${{ matrix.python-version }})
name: AutoSplit for ${{ matrix.os }} (Python ${{ matrix.python-version }})
path: dist/AutoSplit*
if-no-files-found: error
- name: Upload Build logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Build logs (Python ${{ matrix.python-version }})
name: Build logs for ${{ matrix.os }} (Python ${{ matrix.python-version }})
path: |
build/AutoSplit/*.toc
build/AutoSplit/*.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/printenv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
type: boolean
push:
branches:
- master
- main
- dev

env:
Expand All @@ -22,5 +22,5 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v3
uses: actions/checkout@v4
- run: printenv
25 changes: 8 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: pretty-format-json
exclude: ".vscode/.*" # Exclude jsonc
Expand All @@ -9,31 +9,22 @@ repos:
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=crlf]
args: [--fix=lf]
- id: check-case-conflict
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.11.0
rev: v2.14.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, "2", --offset, "2", --preserve-quotes, --line-width, "100"]
- id: pretty-format-ini
args: [--autofix]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.7" # Must match requirements-dev.txt
rev: v0.8.5 # Must match requirements-dev.txt
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/hhatto/autopep8
rev: "v2.0.4" # Must match requirements-dev.txt
hooks:
- id: autopep8
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0 # Must match requirements-dev.txt
hooks:
- id: add-trailing-comma
- id: ruff-format

ci:
autoupdate_branch: dev
autoupdate_schedule: monthly
skip:
# Ignore until Linux support. We don't want lf everywhere yet
# And crlf fails on CI because pre-commit runs on linux
- "mixed-line-ending"
autoupdate_schedule: quarterly
1 change: 0 additions & 1 deletion .sonarcloud.properties

This file was deleted.

7 changes: 3 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// Keep in alphabetical order
{
"recommendations": [
"charliermarsh.ruff",
"davidanson.vscode-markdownlint",
"eamodio.gitlens",
"emeraldwalk.runonsave",
"github.vscode-github-actions",
"ms-python.autopep8",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-vscode.powershell",
Expand All @@ -32,11 +31,11 @@
// Don't recommend to autoinstall //
//
// Use Ruff instead
"ms-python.autopep8",
"ms-python.black-formatter",
"ms-python.flake8",
"ms-python.isort",
"ms-python.pylint",
// We use autopep8
"ms-python.black-formatter",
// This is a Git project
"johnstoncode.svn-scm",
// Prefer using VSCode itself as a text editor
Expand Down
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"configurations": [
{
"name": "Python: AutoSplit (debug non-user code)",
"type": "python",
"type": "debugpy",
"request": "launch",
"preLaunchTask": "Compile resources",
"program": "src/AutoSplit.py",
Expand All @@ -15,7 +15,7 @@
},
{
"name": "Python: AutoSplit",
"type": "python",
"type": "debugpy",
"request": "launch",
"preLaunchTask": "Compile resources",
"program": "src/AutoSplit.py",
Expand All @@ -24,7 +24,7 @@
},
{
"name": "Python: AutoSplit --auto-controlled",
"type": "python",
"type": "debugpy",
"request": "launch",
"preLaunchTask": "Compile resources",
"program": "src/AutoSplit.py",
Expand Down
Loading