Skip to content

Commit c48d7d2

Browse files
authored
Merge pull request #162 from Integration-Automation/dev
Dev
2 parents f2ee0cb + 70a332a commit c48d7d2

29 files changed

+364
-34
lines changed

.github/workflows/dev_python3_10.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
build_dev_version:
16-
runs-on: windows-2019
16+
runs-on: windows-latest
1717

1818
steps:
1919
- uses: actions/checkout@v3

.github/workflows/dev_python3_11.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
build_dev_version:
16-
runs-on: windows-2019
16+
runs-on: windows-latest
1717

1818
steps:
1919
- uses: actions/checkout@v3

.github/workflows/dev_python3_9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
build_dev_version:
16-
runs-on: windows-2019
16+
runs-on: windows-latest
1717

1818
steps:
1919
- uses: actions/checkout@v3

.github/workflows/stable_python3_10.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
build_stable_version:
16-
runs-on: windows-2019
16+
runs-on: windows-latest
1717

1818
steps:
1919
- uses: actions/checkout@v3

.github/workflows/stable_python3_11.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
build_stable_version:
16-
runs-on: windows-2019
16+
runs-on: windows-latest
1717

1818
steps:
1919
- uses: actions/checkout@v3

.github/workflows/stable_python3_9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
build_stable_version:
16-
runs-on: windows-2019
16+
runs-on: windows-latest
1717

1818
steps:
1919
- uses: actions/checkout@v3

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ dmypy.json
116116
# User setting
117117
**/.jeditor
118118

119+
# AI config
120+
**/.ai_config.json
121+
119122
.idea/misc.xml
120123
/.idea
121124
.idea/misc.xml

dev.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_editor_dev"
9-
version = "0.0.224"
9+
version = "0.0.226"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]
1313
description = "JEditor is basic but powerful editor include GPT"
1414
requires-python = ">=3.9"
1515
license-files = ["LICENSE"]
1616
dependencies = [
17-
"PySide6==6.9.0", "qt-material", "yapf", "frontengine", "pycodestyle", "jedi", "qtconsole"
17+
"PySide6==6.9.0", "qt-material", "yapf", "frontengine", "pycodestyle", "jedi",
18+
"qtconsole", "langchain_openai", "langchain", "pydantic"
1819
]
1920
classifiers = [
2021
"Programming Language :: Python :: 3.9",

je_editor/pyside_ui/code/code_process/code_exec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def exec_code(self, exec_file_name, exec_prefix: Union[str, list] = None) -> Non
111111
stdout=subprocess.PIPE,
112112
stderr=subprocess.PIPE,
113113
stdin=subprocess.PIPE,
114-
shell=True
114+
shell=False
115115
)
116116
self.still_run_program = True
117117
# program output message queue thread

je_editor/pyside_ui/code/shell_process/shell_exec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def __init__(
4444
self.read_program_output_from_thread = None
4545
self.main_window: EditorWidget = main_window
4646
self.compiler_path = None
47-
self.code_result: [QTextEdit, None] = None
48-
self.timer: [QTimer, None] = None
47+
self.code_result: Union[QTextEdit, None] = None
48+
self.timer: Union[QTimer, None] = None
4949
self.still_run_shell: bool = True
5050
self.process = None
5151
self.run_output_queue: queue = queue.Queue()
@@ -157,7 +157,7 @@ def process_run_over(self):
157157
if self.after_done_function is not None:
158158
self.after_done_function()
159159

160-
# exit program change run flag to false and clean read thread and queue and process
160+
# exit program change runs flag to false and clean read thread and queue and process
161161
def exit_program(self) -> None:
162162
jeditor_logger.info("ShellManager exit_program")
163163
self.still_run_shell = False

0 commit comments

Comments
 (0)