style: format with ruff
Build and Publish / test (pull_request) Failing after 1m23s
Build and Publish / build (pull_request) Skipped
Build and Publish / Build and Deploy Docs (pull_request) Skipped

This commit is contained in:
2026-07-06 11:53:49 +02:00
parent 13bddd43c7
commit b0863e5ddb
181 changed files with 2237 additions and 5272 deletions
+11 -4
View File
@@ -175,7 +175,8 @@ class PShellClient:
"""
return self._get_response(
requests.put(
url=self.url + "/run", json={"script": script, "pars": pars, "background": background, "async": False}
url=self.url + "/run",
json={"script": script, "pars": pars, "background": background, "async": False},
)
)
@@ -191,7 +192,9 @@ class PShellClient:
Command id (int), which is used to retrieve command execution status/result (get_result).
"""
statement = quote(statement)
return int(self._get_response(requests.get(url=self.url + "/evalAsync/" + statement), False))
return int(
self._get_response(requests.get(url=self.url + "/evalAsync/" + statement), False)
)
def start_run(self, script, pars=None, background=False):
"""Starts execution of a script in the interpreter.
@@ -279,9 +282,13 @@ class PShellClient:
if type == "json":
return self._get_response(requests.get(url=self.url + "/data-json/" + path), True)
elif type == "bin":
return self._get_binary_response(requests.get(url=self.url + "/data-bin/" + path, stream=True))
return self._get_binary_response(
requests.get(url=self.url + "/data-bin/" + path, stream=True)
)
return self._get_response(requests.get(url=self.url + "/data" + ("" if path is None else ("/" + path))), False)
return self._get_response(
requests.get(url=self.url + "/data" + ("" if path is None else ("/" + path))), False
)
def print_logs(self):
for log_line in self.get_logs():