Skip to content

Commit ab18ae7

Browse files
authored
Merge pull request #312 from Toufool/dev
February 2025 2.3.0 release
2 parents 0b79d9d + d2346a1 commit ab18ae7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2665
-11624
lines changed

Diff for: .github/ISSUE_TEMPLATE/bug-or-crash-report.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,40 @@ assignees: ''
77

88
---
99

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

13-
**To Reproduce**
13+
### To Reproduce
14+
1415
Steps to reproduce the behavior:
1516

1617
1. Go to '...'
1718
2. Click on '....'
1819
3. Scroll down to '....'
1920
4. See error
2021

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

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

27-
**Traceback or Crash Report**
28+
### Traceback or Crash Report
29+
2830
If AutoSplit showed an exception traceback, please paste it here:
2931

30-
```
32+
```py
3133

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

35-
**Version (please complete the following information):**
37+
### Version (please complete the following information)
3638

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

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

43-
**Additional context**
45+
### Additional context
4446
<!-- Add any other context about the problem here. -->

Diff for: .github/ISSUE_TEMPLATE/feature_request.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ assignees: ''
77

88
---
99

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

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

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

19-
**Additional context**
19+
### Additional context
2020
<!-- Add any other context or screenshots about the feature request here. -->
2121
<!-- Please include an AutoSplit profile `.toml` file and/or Split Images if relevant. -->

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [main, master, develop, dev]
16+
branches: [main, dev*]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [develop, dev]
19+
branches: [dev*]
2020
schedule:
2121
- cron: "26 13 * * 6"
2222

@@ -35,11 +35,11 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v2
38+
uses: actions/checkout@v4
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

+38-30
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
push:
1212
branches:
1313
- main
14-
- master
1514
- dev*
1615
paths:
1716
- "**.py"
@@ -21,7 +20,6 @@ on:
2120
pull_request:
2221
branches:
2322
- main
24-
- master
2523
- dev*
2624
paths:
2725
- "**.py"
@@ -40,59 +38,69 @@ concurrency:
4038

4139
jobs:
4240
ruff:
43-
runs-on: windows-latest
44-
strategy:
45-
fail-fast: false
46-
# Ruff is version and platform sensible
47-
matrix:
48-
python-version: ["3.10", "3.11", "3.12"]
41+
runs-on: ubuntu-22.04
4942
steps:
5043
- name: Checkout ${{ github.repository }}/${{ github.ref }}
51-
uses: actions/checkout@v3
52-
- name: Set up Python ${{ matrix.python-version }}
53-
uses: actions/setup-python@v4
54-
with:
55-
python-version: ${{ matrix.python-version }}
56-
cache: "pip"
57-
cache-dependency-path: "scripts/requirements*.txt"
58-
- run: scripts/install.ps1
44+
uses: actions/checkout@v4
45+
- name: Get Ruff version
46+
id: ruff_version
47+
run: |
48+
$Env:RUFF_VERSION=Select-String -path scripts/requirements-dev.txt -pattern 'ruff ?([=<>~]?= ?[\d\.]+)' | %{ $_.Matches[0].Groups[1].Value }
49+
echo $Env:RUFF_VERSION
50+
echo "RUFF_VERSION=$Env:RUFF_VERSION" >> $Env:GITHUB_OUTPUT
5951
shell: pwsh
60-
- run: ruff check .
52+
- uses: astral-sh/ruff-action@v3
53+
with:
54+
version: ${{ steps.ruff_version.outputs.RUFF_VERSION }}
55+
- run: ruff format --check
6156
Pyright:
62-
runs-on: windows-latest
57+
runs-on: ${{ matrix.os }}
6358
strategy:
6459
fail-fast: false
6560
# Pyright is version and platform sensible
6661
matrix:
67-
python-version: ["3.10", "3.11", "3.12"]
62+
os: [windows-latest, ubuntu-22.04]
63+
python-version: ["3.11", "3.12", "3.13"]
6864
steps:
6965
- name: Checkout ${{ github.repository }}/${{ github.ref }}
70-
uses: actions/checkout@v3
66+
uses: actions/checkout@v4
7167
- name: Set up Python ${{ matrix.python-version }}
72-
uses: actions/setup-python@v4
68+
uses: actions/setup-python@v5
7369
with:
7470
python-version: ${{ matrix.python-version }}
7571
cache: "pip"
7672
cache-dependency-path: "scripts/requirements*.txt"
7773
- run: scripts/install.ps1
7874
shell: pwsh
75+
- name: Get pyright version
76+
id: pyright_version
77+
run: |
78+
PYRIGHT_VERSION=$(grep '$pyrightVersion = ' 'scripts/lint.ps1' | cut -d "#" -f 1 | cut -d = -f 2 | tr -d " '")
79+
echo pyright version: "${PYRIGHT_VERSION}"
80+
echo PYRIGHT_VERSION="${PYRIGHT_VERSION}" >> "${GITHUB_OUTPUT}"
81+
shell: bash
7982
- name: Analysing the code with Pyright
80-
uses: jakebailey/pyright-action@v1
83+
uses: jakebailey/pyright-action@v2
8184
with:
85+
version: ${{ steps.pyright_version.outputs.PYRIGHT_VERSION }}
8286
working-directory: src/
8387
python-version: ${{ matrix.python-version }}
8488
Build:
85-
runs-on: windows-latest
89+
runs-on: ${{ matrix.os }}
8690
strategy:
8791
fail-fast: false
8892
# Only the Python version we plan on shipping matters.
8993
matrix:
90-
python-version: ["3.11", "3.12"]
94+
os: [windows-latest, ubuntu-22.04]
95+
python-version: ["3.12", "3.13"]
96+
include:
97+
- os: ubuntu-22.04
98+
python-version: "3.11" # I had some Qt Wayland issues on 3.12 for ubuntu-22.04 iirc. TODO: test it
9199
steps:
92100
- name: Checkout ${{ github.repository }}/${{ github.ref }}
93-
uses: actions/checkout@v3
101+
uses: actions/checkout@v4
94102
- name: Set up Python ${{ matrix.python-version }}
95-
uses: actions/setup-python@v4
103+
uses: actions/setup-python@v5
96104
with:
97105
python-version: ${{ matrix.python-version }}
98106
cache: "pip"
@@ -102,15 +110,15 @@ jobs:
102110
- run: scripts/build.ps1
103111
shell: pwsh
104112
- name: Upload Build Artifact
105-
uses: actions/upload-artifact@v3
113+
uses: actions/upload-artifact@v4
106114
with:
107-
name: AutoSplit (Python ${{ matrix.python-version }})
115+
name: AutoSplit for ${{ matrix.os }} (Python ${{ matrix.python-version }})
108116
path: dist/AutoSplit*
109117
if-no-files-found: error
110118
- name: Upload Build logs
111-
uses: actions/upload-artifact@v3
119+
uses: actions/upload-artifact@v4
112120
with:
113-
name: Build logs (Python ${{ matrix.python-version }})
121+
name: Build logs for ${{ matrix.os }} (Python ${{ matrix.python-version }})
114122
path: |
115123
build/AutoSplit/*.toc
116124
build/AutoSplit/*.txt

Diff for: .github/workflows/printenv.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
type: boolean
1111
push:
1212
branches:
13-
- master
13+
- main
1414
- dev
1515

1616
env:
@@ -22,5 +22,5 @@ jobs:
2222
runs-on: windows-latest
2323
steps:
2424
- name: Checkout ${{ github.repository }}/${{ github.ref }}
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
- run: printenv

Diff for: .pre-commit-config.yaml

+8-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v5.0.0
44
hooks:
55
- id: pretty-format-json
66
exclude: ".vscode/.*" # Exclude jsonc
@@ -9,31 +9,22 @@ repos:
99
args: [--markdown-linebreak-ext=md]
1010
- id: end-of-file-fixer
1111
- id: mixed-line-ending
12-
args: [--fix=crlf]
12+
args: [--fix=lf]
1313
- id: check-case-conflict
1414
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
15-
rev: v2.11.0
15+
rev: v2.14.0
1616
hooks:
17+
- id: pretty-format-yaml
18+
args: [--autofix, --indent, "2", --offset, "2", --preserve-quotes, --line-width, "100"]
1719
- id: pretty-format-ini
1820
args: [--autofix]
1921
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: "v0.1.7" # Must match requirements-dev.txt
22+
rev: v0.8.5 # Must match requirements-dev.txt
2123
hooks:
2224
- id: ruff
2325
args: [--fix]
24-
- repo: https://github.com/hhatto/autopep8
25-
rev: "v2.0.4" # Must match requirements-dev.txt
26-
hooks:
27-
- id: autopep8
28-
- repo: https://github.com/asottile/add-trailing-comma
29-
rev: v3.1.0 # Must match requirements-dev.txt
30-
hooks:
31-
- id: add-trailing-comma
26+
- id: ruff-format
3227

3328
ci:
3429
autoupdate_branch: dev
35-
autoupdate_schedule: monthly
36-
skip:
37-
# Ignore until Linux support. We don't want lf everywhere yet
38-
# And crlf fails on CI because pre-commit runs on linux
39-
- "mixed-line-ending"
30+
autoupdate_schedule: quarterly

Diff for: .sonarcloud.properties

-1
This file was deleted.

Diff for: .vscode/extensions.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// Keep in alphabetical order
22
{
33
"recommendations": [
4+
"charliermarsh.ruff",
45
"davidanson.vscode-markdownlint",
56
"eamodio.gitlens",
6-
"emeraldwalk.runonsave",
77
"github.vscode-github-actions",
8-
"ms-python.autopep8",
98
"ms-python.python",
109
"ms-python.vscode-pylance",
1110
"ms-vscode.powershell",
@@ -32,11 +31,11 @@
3231
// Don't recommend to autoinstall //
3332
//
3433
// Use Ruff instead
34+
"ms-python.autopep8",
35+
"ms-python.black-formatter",
3536
"ms-python.flake8",
3637
"ms-python.isort",
3738
"ms-python.pylint",
38-
// We use autopep8
39-
"ms-python.black-formatter",
4039
// This is a Git project
4140
"johnstoncode.svn-scm",
4241
// Prefer using VSCode itself as a text editor

Diff for: .vscode/launch.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"configurations": [
77
{
88
"name": "Python: AutoSplit (debug non-user code)",
9-
"type": "python",
9+
"type": "debugpy",
1010
"request": "launch",
1111
"preLaunchTask": "Compile resources",
1212
"program": "src/AutoSplit.py",
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"name": "Python: AutoSplit",
18-
"type": "python",
18+
"type": "debugpy",
1919
"request": "launch",
2020
"preLaunchTask": "Compile resources",
2121
"program": "src/AutoSplit.py",
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"name": "Python: AutoSplit --auto-controlled",
27-
"type": "python",
27+
"type": "debugpy",
2828
"request": "launch",
2929
"preLaunchTask": "Compile resources",
3030
"program": "src/AutoSplit.py",

0 commit comments

Comments
 (0)