Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

More Linux Work #35

Closed
wants to merge 208 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
3f23c55
First linting pass
Avasam Nov 29, 2021
667696c
Merge pull request #92 from Avasam/linting
Toufool Nov 29, 2021
13b4d43
Moved most settings to pyproject.toml and ran autopep8
Avasam Nov 29, 2021
9840fd9
Removed mypy and Fixed import-outside-toplevel
Avasam Nov 29, 2021
feda2ad
Double quotes and pylint complete linting
Avasam Nov 29, 2021
09b34fc
Configured linting workflow
Avasam Nov 30, 2021
4edbef5
add pause after start image tip
Toufool Dec 1, 2021
4cd2b9e
Merge pull request #122 from Avasam/github-actions
Toufool Dec 3, 2021
3602d5f
Fix crash on LiveSplit open and missing link in error message
Avasam Dec 3, 2021
fd0721e
Merge branch '2.0.0' of https://github.com/Toufool/Auto-Split into li…
Avasam Dec 3, 2021
cb4b293
Merge pull request #121 from Avasam/linting
Toufool Dec 3, 2021
002b097
Merge
Avasam Dec 3, 2021
6bfd4cb
Merge branch 'dev' of https://github.com/Toufool/Auto-Split into 2.0.0
Avasam Dec 3, 2021
0b704d6
Merge branch '2.0.0' into Save-'Check-For-Updates-On-Open'-immediatly
Avasam Dec 3, 2021
fdcffa9
Fixed certificate error and random crash on open when compiled
Avasam Dec 5, 2021
a2b1f3c
Merge pull request #125 from Avasam/2.0.0
Toufool Dec 5, 2021
f621fac
Using python/typeshed/pull/6492
Avasam Dec 5, 2021
f0fa0e2
PEP8 naming convention
Avasam Dec 5, 2021
fd97eba
Added build artifact
Avasam Dec 6, 2021
7c92122
AutoSplitImage Class and simplified code
Avasam Dec 6, 2021
e1e77ea
Average FPS over all images with all actions
Avasam Dec 6, 2021
0686ea4
Merge pull request #124 from Avasam/Save-'Check-For-Updates-On-Open'-…
Toufool Dec 6, 2021
b2e4e2a
Merge pull request #126 from Avasam/naming-convention
Toufool Dec 6, 2021
1663465
Merge pull request #127 from Avasam/SplitImage-as-class
Toufool Dec 6, 2021
e4566ea
Added badges
Avasam Dec 7, 2021
82a2d05
Merge pull request #128 from Avasam/main
Toufool Dec 7, 2021
c07b771
Fixed "Select Window" not working for windows with negative coordinates
Avasam Dec 8, 2021
84a5bb4
Ability to recover window
Avasam Dec 8, 2021
f234fe9
Merge branch 'master' of https://github.com/Toufool/Auto-Split into R…
Avasam Dec 8, 2021
709e6c1
Merge pull request #129 from Avasam/Recover-from-closed-capture-window
Toufool Dec 10, 2021
69ffb11
Differentiate "undo/skip split" from "previous/next image"
Avasam Dec 10, 2021
822c8aa
Merge pull request #131 from Avasam/Feature-Request--Previous/Next-Im…
Toufool Dec 11, 2021
93b089f
Make Save Settings more intuitive
Avasam Dec 11, 2021
1736443
Merge pull request #132 from Avasam/Make-Save-Settings-more-intuitive
Toufool Dec 14, 2021
bbb257f
Initial UI update for 2.0.0. Add settings window.
Toufool Dec 14, 2021
0b267a6
hooked new settings window to actual values
Avasam Dec 15, 2021
f0149f5
Implemented image specific comparison method and default delay time.
Avasam Dec 15, 2021
4f89007
Better "seconds remaining" text
Avasam Dec 16, 2021
2eee9de
Support modifiers the same way LiveSplit does. Closes #34
Avasam Dec 16, 2021
33a49c6
Linted pyi files
Avasam Dec 16, 2021
9be8afc
Initial UI update for 2.0.0. Add settings window.
Toufool Dec 14, 2021
2d8cb6b
hooked new settings window to actual values
Avasam Dec 15, 2021
5838931
Better "seconds remaining" text
Avasam Dec 16, 2021
0399bbc
Merge branch '2.0.0' of https://github.com/Toufool/Auto-Split into 2.0.0
Avasam Dec 17, 2021
21947d0
Undo split goes to the end of the group
Avasam Dec 22, 2021
a196113
Merge branch '2.0.0' into image-comparison-method-and-default-delay-time
Avasam Dec 29, 2021
ff97b81
Merge branch '2.0.0' into support-hotkeys-with-modifiers
Avasam Dec 29, 2021
ef26562
Merge branch '2.0.0' into Linted-pyi-files
Avasam Dec 29, 2021
b8c1bbe
Turn off pyright(reportFunctionMemberAccess) in favor of pylint(no-me…
Avasam Dec 29, 2021
509274c
Merge branch 'support-hotkeys-with-modifiers' into complete
Avasam Dec 29, 2021
e00cacd
Merge branch 'Linted-pyi-files' into complete
Avasam Dec 29, 2021
83039c6
Fixed images comparison method defaulting to 0 rather than none
Avasam Dec 29, 2021
15b4c13
Merge branch 'image-comparison-method-and-default-delay-time' into co…
Avasam Dec 29, 2021
7e5004d
Fixed start image comparison not starting when loading settings from …
Avasam Jan 3, 2022
c7af588
Fixed threshold_from_filename to support 0.0 and 1.0
Avasam Jan 26, 2022
660276d
Reset similarity labels
Avasam Jan 27, 2022
a7b07f7
Visually update threshold labels when changed from settings
Avasam Mar 12, 2022
c831838
Keep pause timer running when undoing split
Avasam Mar 12, 2022
714c8cc
Prevent text flash when reloading start image
Avasam Mar 12, 2022
23b0206
Reverted pause before start image
Avasam Mar 12, 2022
c2deb11
TOML Settings
Avasam Mar 13, 2022
048b948
Trying out Python 3.10 build
Avasam Mar 13, 2022
17e3e81
Further pyi linting
Avasam Mar 13, 2022
125d4b2
Updated some messages
Avasam Apr 2, 2022
a64c5ce
Implement D3D Desktop Duplication
Avasam Apr 3, 2022
6d334c3
d3dshot stub
Avasam Apr 3, 2022
7d4f860
Split dropdown for supported imread filetypes
Avasam Apr 3, 2022
54c68c0
Finished implementing desktop duplicaton
Avasam Apr 3, 2022
886b596
Fixed dropdown height on first open and added tooltip
Avasam Apr 3, 2022
a7a1308
Prevent some infinite error loops
Avasam Apr 4, 2022
fa6037b
Massively sped up Flake tests
Avasam Apr 4, 2022
9398787
Merge branch 'use-pywin32-stubs-fork' of https://github.com/Avasam/Au…
Avasam Apr 4, 2022
834ad36
WIP camera capture
Avasam Apr 5, 2022
f4b64b0
Merge branch 'use-pywin32-stubs-fork' of https://github.com/Avasam/Au…
Avasam Apr 4, 2022
d29a450
wip WindowsGraphicsCapture, missing bindings
Avasam Apr 7, 2022
784a9fe
Working WindowsGraphicsCapture picker
Avasam Apr 7, 2022
274cef1
Completed WindowsGraphicsApi support
Avasam Apr 8, 2022
e5a185d
Merge pull request #19 from Avasam/wip-WindowsGraphicsCapture
Avasam Apr 8, 2022
7bfd7e1
Merge branch 'More-capture-options' of https://github.com/Avasam/Auto…
Avasam Apr 8, 2022
1f50eb1
Cleaner capture device selection
Avasam Apr 9, 2022
6df5975
Specify OBS' Virtualcam plugin and pickup cam on load
Avasam Apr 9, 2022
993e077
Fixed WindowsGraphicsCapture max FPS detection
Avasam Apr 9, 2022
3a8e9e3
Massively sped up Flake tests
Avasam Apr 4, 2022
4f20ef1
Turn off pyright(reportFunctionMemberAccess) in favor of pylint(no-me…
Avasam Dec 29, 2021
0003771
Centralized qWait typing fix
Avasam Apr 8, 2022
74b58e8
Autosort imports
Avasam Apr 8, 2022
3f9254b
Resynced settings
Avasam Apr 11, 2022
b2d2174
Merge branch 'toml-settings' into More-capture-options
Avasam Apr 11, 2022
724149e
post-merge fix linting
Avasam Apr 11, 2022
abf49e7
Merge branch 'toml-settings' into More-capture-options
Avasam Apr 11, 2022
24df1a3
post-merge linting fixes
Avasam Apr 11, 2022
1cf68dd
Merge branch 'More-capture-options' into camera-capture-split-cam-option
Avasam Apr 11, 2022
23694d9
Re-introduced region selection for WGC API.
Avasam Apr 13, 2022
74edfc2
Fixed linting with updated pyright
Avasam Apr 13, 2022
81da593
Merge branch 'More-capture-options' into camera-capture-split-cam-option
Avasam Apr 13, 2022
fece8e7
Fixed linting with updated pyright
Avasam Apr 13, 2022
87c7ac6
Restored all functionalities for CaptureMethod.WINDOWS_GRAPHICS_CAPTURE
Avasam May 1, 2022
500dd37
Merge branch 'More-capture-options' into camera-capture-split-cam-option
Avasam May 1, 2022
17afb4f
Updated pyi linting
Avasam May 1, 2022
bc16b8c
Merge branch 'More-capture-options' into camera-capture-split-cam-option
Avasam May 1, 2022
063595f
Include backend in camera name
Avasam May 1, 2022
53004fd
Restored all functionalities for CaptureMethod.WINDOWS_GRAPHICS_CAPTURE
Avasam May 1, 2022
a8f89cb
Updated pyi linting
Avasam May 1, 2022
4cc5d7a
Fixed an error when changing similarity while the comparison is not r…
Avasam May 3, 2022
68128c5
More constants for image comparison
Avasam May 3, 2022
d91ce2f
Parallel device scan and attempt at adding some names
Avasam May 4, 2022
20100ee
Merge branch 'More-capture-options' into camera-capture-split-cam-option
Avasam May 4, 2022
9710e61
Fixed error when CaptureDevices haven't loaded yet
Avasam May 4, 2022
0c5c107
Constants and more specific ignores
Avasam May 4, 2022
7bfd2f7
More accurate filename
Avasam May 7, 2022
2bc112b
Test for MediaCapture and simplified coroutine
Avasam May 7, 2022
0e53b59
Updated README and some messages
Avasam May 7, 2022
0f63e69
Fixed a few issues with the video capture device implementation
Avasam Jun 2, 2022
2ecfa85
Updated some text
Avasam Jun 3, 2022
59f7dd0
Fixed start images threshold
Avasam Jun 6, 2022
a91323c
Updated typings
Avasam Jun 6, 2022
3a88ae6
Fixes #22
Avasam Jun 10, 2022
51888f3
Reset image now indicates that its paused when starting a run
Avasam Jun 10, 2022
8027d1f
Updated pyright and some scripts
Avasam Jun 11, 2022
fc21a2b
headless opencv is enough
Avasam Jun 11, 2022
a4dda9d
Updated versioning
Avasam Jun 15, 2022
0e6ce0b
Set camera size
Avasam Jun 15, 2022
2cb3068
enumarate cameras using pygrabber
Avasam Jun 15, 2022
46e5392
Don't pickup inexistant window on load
Avasam Jun 15, 2022
cbf489e
Updated pylint, python job, and split requireemnts
Avasam Jun 16, 2022
b5aa78f
Add splash screen. Closes Avasam#25
Avasam Jun 16, 2022
74a538a
Check version for is_border_required
Avasam Jun 16, 2022
391cbe4
Fix a handful of Win11 high DPI scaling issues + Build task
Avasam Jun 16, 2022
ad72917
Fix yet another issue on Windows Graphics Capture + oopsie
Avasam Jun 16, 2022
3ca7dbe
bugfix: get_method_by_index should return first element with negative…
Avasam Jun 17, 2022
dc1e9dd
Properly fix region alignement
Avasam Jun 17, 2022
0ad99bf
Removed simplejson
Avasam Jun 17, 2022
0af8ce3
More capture method readme update
Avasam Jun 17, 2022
97fbe26
Fix #27
Avasam Jun 17, 2022
a1c1dd9
round down floats shown in UI
Avasam Jun 19, 2022
45aab97
disable unused hotkeys when autocontrolled
Avasam Jun 19, 2022
920fcfd
Allow to move / set an existing hotkey
Avasam Jun 19, 2022
2587fd3
don't double send skip and undo splits hotkey
Avasam Jun 19, 2022
c3ac350
Extract all constants and shared utils methods
Avasam Jun 19, 2022
33c46d4
Better guards
Avasam Jun 25, 2022
37f3173
Windows Graphics Capture border doc update
Avasam Jul 3, 2022
1c2b3fc
Update codeql-action to v2
Avasam Jul 3, 2022
c006826
Updated Scripts to OS agnostic powershell
Avasam Jul 12, 2022
e555479
Abstracted all capture methods to its own module
Avasam Jul 13, 2022
3d72389
Optimized VideoCaptureDevice by threading it
Avasam Jul 13, 2022
b0a1c39
CI: Install wheel
Avasam Jul 13, 2022
96d707a
Some UI fixes
Avasam Jul 14, 2022
ae23c83
File accesses and basic fixes to run
Avasam Jul 13, 2022
393873b
WIP skeleton for an image capture
Avasam Jul 14, 2022
38930a4
Show a warning if AutoSplit is already open
Avasam Jul 14, 2022
9fe46c4
Fixed linting
Avasam Jul 14, 2022
d6f394f
Add version number
Avasam Jul 14, 2022
57a9c80
Updated doc for per-image comparison method
Avasam Jul 15, 2022
752b9f6
Added Scrot as a capture method for Linux
Avasam Jul 15, 2022
1b1f98a
Added gnome-screenshot and XDisplay
Avasam Jul 15, 2022
098ef90
Add scrot check, better descriptions,
Avasam Jul 15, 2022
5763e8f
Fixed videocapture closing order
Avasam Jul 15, 2022
eb65120
Fully functional regions
Avasam Jul 16, 2022
5082769
Merge branch 'abstract-capture-method' of https://github.com/Avasam/A…
Avasam Jul 16, 2022
5e45ad9
updated build definitions
Avasam Jul 16, 2022
bee4e14
Use proper platform checking respecting PEP 0484
Avasam Jul 16, 2022
c2a0770
Don't restrict pyright to windows
Avasam Jul 16, 2022
669783d
Fixed Flake8 pyi linting under Windows
Avasam Jul 16, 2022
7433b89
Extract hwnd validation
Avasam Jul 16, 2022
f787a5d
More import splits
Avasam Jul 16, 2022
afa0ed6
Added pynput.keyboard._xorg as hidden import
Avasam Jul 19, 2022
bb9eafa
Merge branch 'linux' of https://github.com/Avasam/Auto-Split into linux
Avasam Jul 19, 2022
ae48317
Fix flake8
Avasam Jul 19, 2022
789ca60
Added execute permissions
Avasam Jul 19, 2022
c0d0e25
hook-pynput
Avasam Jul 19, 2022
574f77a
Fixed PyRight windows
Avasam Jul 19, 2022
49a728f
Merge branch 'linux' of https://github.com/Avasam/Auto-Split into linux
Avasam Jul 19, 2022
8090748
Added hidden imports to build script
Avasam Jul 19, 2022
5e72cb5
Fix Pyright linting and create missing type stubs
Avasam Jul 19, 2022
71736ed
Fixed Flake8 errors in pyi
Avasam Jul 19, 2022
b68867f
pyright fix windows
Avasam Jul 19, 2022
ae22027
Updated install script to support CI/CD and local
Avasam Jul 19, 2022
551021b
leftover windows req on linux
Avasam Jul 19, 2022
6f94a90
added pynput.mouse._xorg"
Avasam Jul 19, 2022
ae3faa6
try different version of ubuntu
Avasam Jul 19, 2022
d9cdbf2
Test onedir
Avasam Jul 19, 2022
0761cf2
Added build logs to artifacts
Avasam Jul 19, 2022
2851fa1
dpkgs info
Avasam Jul 19, 2022
35888a1
temp disable linting ci
Avasam Jul 19, 2022
0bc8a8f
try libxrender-dev
Avasam Jul 19, 2022
435afcb
.
Avasam Jul 19, 2022
4378a0c
added libxkbcommon-dev
Avasam Jul 19, 2022
784400e
Try installing everything libxcb
Avasam Jul 19, 2022
279950c
try without hidden-import
Avasam Jul 19, 2022
68faaf4
Reactivated CIs
Avasam Jul 19, 2022
5f1305a
Improved Thread target error catching
Avasam Jul 19, 2022
9a458b6
Try adding back hooks
Avasam Jul 19, 2022
76c72a6
.
Avasam Jul 19, 2022
bb645f5
try pywinctl hook
Avasam Jul 19, 2022
70f3907
hidden imports as build script
Avasam Jul 19, 2022
8d68742
Hotkeys are working!
Avasam Jul 20, 2022
dbfa959
Don't try to change permissions on CI
Avasam Jul 20, 2022
9048dbf
sudo pip install on CI
Avasam Jul 20, 2022
89fc2eb
Fix flake8 errors
Avasam Jul 20, 2022
349f220
loginctl in ci
Avasam Jul 20, 2022
739de10
revert
Avasam Jul 20, 2022
6b233c8
remove unneeded CI
Avasam Jul 20, 2022
bea8405
.
Avasam Jul 20, 2022
f6475b1
.
Avasam Jul 21, 2022
111d4ed
Update numpy version restriction
Avasam Jul 22, 2022
f1300bc
More Linux Work
Erotemic Jul 22, 2022
1136f38
Script with instructions for setup on linux
Erotemic Jul 22, 2022
099c96f
POC for using pynput instead of keyboard
Erotemic Jul 22, 2022
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
Empty file modified .editorconfig
100644 → 100755
Empty file.
26 changes: 26 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[flake8]
color=always
max-line-length=120
; Auto generated
exclude=src/gen/, typings/cv2-stubs/__init__.pyi
ignore=
W503, ; Linebreak before binary operator
E402, ; Allow imports at the bottom of file
Y026, ; Not using typing_extensions
per-file-ignores=
; Docstrings in type stubs
; Function bodys contain other than just ... (eg: raise)
; Single quote docstrings
typings/cv2-stubs/__init__.pyi: Q000,E704,E501,N8, Y021,Y010,Q002

; Quotes
; Allow ... on same line as def
; Line too long
; Naming conventions can't be controlled for external libraries
typings/**: Q000,E704,E501,N8
; PyQt methods
ignore-names=closeEvent,paintEvent,keyPressEvent,mousePressEvent,mouseMoveEvent,mouseReleaseEvent
; McCabe max-complexity is also taken care of by Pylint and doesn't fail the build there
; So this is the hard limit
max-complexity=32
inline-quotes="
67 changes: 67 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

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

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# 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

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
139 changes: 139 additions & 0 deletions .github/workflows/lint-and-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: Lint and build
on:
push:
branches:
- main
- master
paths:
- '**.py'
- '**.pyi'
- '**.ui'
pull_request:
branches:
- main
- master
- dev
- dev*
- 2.0.0
paths:
- '**.py'
- '**.pyi'
- '**.ui'
jobs:
Pyright:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
# FIXME: the sudo pip install breaks Pyright's ability to see modules
# os: [windows-latest, ubuntu-22.04]
os: [windows-latest]
steps:
- name: Checkout ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@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
shell: pwsh
- name: Analysing the code with Pyright
run: pyright --warnings
Pylint:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
# FIXME: For some reasons, Pylint can't see PyQt6 modules on ubuntu
# os: [windows-latest, ubuntu-22.04]
os: [windows-latest]
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
shell: pwsh
- name: Analysing the code with Pylint
run: pylint --reports=y --output-format=colorized src/
Flake8:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
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
shell: pwsh
- name: Analysing the code with Flake8
run: flake8
Bandit:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- name: Checkout ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: 'scripts/requirements*.txt'
- run: scripts/install.ps1
shell: pwsh
- name: Analysing the code with Bandit
run: bandit -n 1 --severity-level medium --recursive src
Build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
os: [windows-latest, 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'
- run: scripts/install.ps1
shell: pwsh
- run: scripts/build.ps1
shell: pwsh
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
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
with:
name: Build logs for ${{ matrix.os }} (Python ${{ matrix.python-version }})
path: |
build/AutoSplit/*.toc
build/AutoSplit/*.txt
build/AutoSplit/*.html
if-no-files-found: error
8 changes: 8 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Caches
.cache/

# Byte-compiled / optimized / DLL files
__pycache__/

# Distribution / packaging
env/
build/
dist/
*.prof
# Generated
**/gen/*.py
!**/gen/*.pyi

# PyInstaller
# Usually these files are written by a python script from a template
Expand All @@ -16,3 +23,4 @@ dist/

# Dev settings
*.pkl
settings.toml
6 changes: 6 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"default": true,
"MD001": false,
"MD013": false,
"MD025": false
}
33 changes: 28 additions & 5 deletions .vscode/extensions.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
// Keep in alphabetical order
{
"recommendations": [
"ms-python.vscode-pylance",
"ms-python.python",
"sonarsource.sonarlint-vscode",
"bungcip.better-toml",
"davidanson.vscode-markdownlint",
"eamodio.gitlens",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-vscode.powershell",
"pkief.material-icon-theme",
"shardulm94.trailing-spaces",
"eamodio.gitlens"
],
"unwantedRecommendations": [
// Must disable in this workspace //
//
// VSCode has implemented an optimized version
"coenraads.bracket-pair-colorizer",
"coenraads.bracket-pair-colorizer-2",
// Lots of conflicts
"esbenp.prettier-vscode",
// Replaced by ESLint
"eg2.tslint",
"ms-vscode.vscode-typescript-tslint-plugin",
// Obsoleted by Pylance
"ms-pyright.pyright",
"esbenp.prettier-vscode"
// Not configurable per workspace, tends to conflict with other linters
// Use eslint-plugin-sonarjs for JS/TS projects
"sonarsource.sonarlint-vscode",
//
// Just don't recommend //
//
// This is a Git project
"johnstoncode.svn-scm",
// Prefer using VSCode itself as a text editor
"vscodevim.vim",
]
}
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: AutoSplit",
"type": "python",
"request": "launch",
"program": "src/AutoSplit.py",
"console": "integratedTerminal",
"justMyCode": true
}
]
}
Loading