-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Doc & config update * Drop `from __future__ import annotations` & type reference fixes * Improved control flow (match-case) * Couple other manual updates * Fix pyright issue with versions * Re-lint
- Loading branch information
Showing
27 changed files
with
2,443 additions
and
2,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sonar.python.version=3.9, 3.10, 3.11 | ||
sonar.python.version=3.10, 3.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import annotations | ||
|
||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
# Get the cacert.pem | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
from PySide6 import QtCore | ||
|
||
import error_messages | ||
import user_profile | ||
|
||
if TYPE_CHECKING: | ||
from AutoSplit import AutoSplit | ||
|
||
|
||
class AutoControlledThread(QtCore.QThread): | ||
def __init__(self, autosplit: AutoSplit): | ||
self.autosplit = autosplit | ||
super().__init__() | ||
|
||
@QtCore.Slot() | ||
def run(self): | ||
while True: | ||
try: | ||
line = input() | ||
except RuntimeError: | ||
self.autosplit.show_error_signal.emit(error_messages.stdin_lost) | ||
break | ||
except EOFError: | ||
continue | ||
# This is for use in a Development environment | ||
if line == "kill": | ||
self.autosplit.closeEvent() | ||
break | ||
if line == "start": | ||
self.autosplit.start_auto_splitter() | ||
elif line in {"split", "skip"}: | ||
self.autosplit.skip_split_signal.emit() | ||
elif line == "undo": | ||
self.autosplit.undo_split_signal.emit() | ||
elif line == "reset": | ||
self.autosplit.reset_signal.emit() | ||
elif line.startswith("settings"): | ||
# Allow for any split character between "settings" and the path | ||
user_profile.load_settings(self.autosplit, line[9:]) | ||
# TODO: Not yet implemented in AutoSplit Integration | ||
# elif line == 'pause': | ||
# self.pause_signal.emit() | ||
from typing import TYPE_CHECKING | ||
|
||
from PySide6 import QtCore | ||
|
||
import error_messages | ||
import user_profile | ||
|
||
if TYPE_CHECKING: | ||
from AutoSplit import AutoSplit | ||
|
||
|
||
class AutoControlledThread(QtCore.QThread): | ||
def __init__(self, autosplit: "AutoSplit"): | ||
self.autosplit = autosplit | ||
super().__init__() | ||
|
||
@QtCore.Slot() | ||
def run(self): | ||
while True: | ||
try: | ||
line = input() | ||
except RuntimeError: | ||
self.autosplit.show_error_signal.emit(error_messages.stdin_lost) | ||
break | ||
except EOFError: | ||
continue | ||
match line: | ||
# This is for use in a Development environment | ||
case "kill": | ||
self.autosplit.closeEvent() | ||
break | ||
case "start": | ||
self.autosplit.start_auto_splitter() | ||
case "split" | "skip": | ||
self.autosplit.skip_split_signal.emit() | ||
case "undo": | ||
self.autosplit.undo_split_signal.emit() | ||
case "reset": | ||
self.autosplit.reset_signal.emit() | ||
# TODO: Not yet implemented in AutoSplit Integration | ||
# case 'pause': | ||
# self.pause_signal.emit() | ||
case line: | ||
if line.startswith("settings"): | ||
# Allow for any split character between "settings" and the path | ||
user_profile.load_settings(self.autosplit, line[9:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.