osascript2 1.2.0__tar.gz → 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {osascript2-1.2.0 → osascript2-1.2.2}/PKG-INFO +1 -1
- osascript2-1.2.2/osascript/__init__.py +5 -0
- {osascript2-1.2.0 → osascript2-1.2.2}/osascript/osascript.py +14 -6
- {osascript2-1.2.0 → osascript2-1.2.2}/osascript2.egg-info/PKG-INFO +1 -1
- {osascript2-1.2.0 → osascript2-1.2.2}/pyproject.toml +25 -1
- osascript2-1.2.0/osascript/__init__.py +0 -5
- {osascript2-1.2.0 → osascript2-1.2.2}/LICENSE +0 -0
- {osascript2-1.2.0 → osascript2-1.2.2}/README.md +0 -0
- {osascript2-1.2.0 → osascript2-1.2.2}/osascript/py.typed +0 -0
- {osascript2-1.2.0 → osascript2-1.2.2}/osascript2.egg-info/SOURCES.txt +0 -0
- {osascript2-1.2.0 → osascript2-1.2.2}/osascript2.egg-info/dependency_links.txt +0 -0
- {osascript2-1.2.0 → osascript2-1.2.2}/osascript2.egg-info/top_level.txt +0 -0
- {osascript2-1.2.0 → osascript2-1.2.2}/setup.cfg +0 -0
|
@@ -21,16 +21,24 @@ def _run(cmd: str | Path, text: bool) -> tuple[int, str, str] | tuple[int, bytes
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
def run(cmd: str | Path) -> tuple[int, str, str]:
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
"""Execute the given applescript command or file (run with subprocess' text=True)
|
|
25
|
+
|
|
26
|
+
Args:
|
|
27
|
+
cmd: The string command (or path to the applescript file) to execute
|
|
28
|
+
|
|
29
|
+
Returns:
|
|
30
|
+
A tuple containing: (return code, stdout, and stderr)
|
|
27
31
|
"""
|
|
28
32
|
return cast(tuple[int, str, str], _run(cmd, True))
|
|
29
33
|
|
|
30
34
|
|
|
31
35
|
def run_bytes(cmd: str | Path) -> tuple[int, bytes, bytes]:
|
|
32
|
-
"""
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
"""Execute the given applescript command or file (run with subprocess' text=False)
|
|
37
|
+
|
|
38
|
+
Args:
|
|
39
|
+
cmd: The string command (or path to the applescript file) to execute
|
|
40
|
+
|
|
41
|
+
Returns:
|
|
42
|
+
A tuple containing: (return code, stdout, and stderr)
|
|
35
43
|
"""
|
|
36
44
|
return cast(tuple[int, bytes, bytes], _run(cmd, False))
|
|
@@ -40,7 +40,31 @@ target-version = ["py314"]
|
|
|
40
40
|
[tool.ruff]
|
|
41
41
|
line-length = 120
|
|
42
42
|
[tool.ruff.lint]
|
|
43
|
-
ignore=[
|
|
43
|
+
ignore=[
|
|
44
|
+
"D10", "D2", "D403", "D415",
|
|
45
|
+
"E731",
|
|
46
|
+
"I001",
|
|
47
|
+
"S603", "S607",
|
|
48
|
+
]
|
|
49
|
+
extend-select = [
|
|
50
|
+
"ANN",
|
|
51
|
+
"ARG",
|
|
52
|
+
"ASYNC",
|
|
53
|
+
"C4",
|
|
54
|
+
"D",
|
|
55
|
+
"DTZ",
|
|
56
|
+
"PERF",
|
|
57
|
+
"PGH",
|
|
58
|
+
"PIE",
|
|
59
|
+
"PL",
|
|
60
|
+
"PTH",
|
|
61
|
+
"RET",
|
|
62
|
+
"S",
|
|
63
|
+
"SIM",
|
|
64
|
+
"TID"
|
|
65
|
+
]
|
|
66
|
+
[tool.ruff.lint.pydocstyle]
|
|
67
|
+
convention = "google"
|
|
44
68
|
[tool.ruff.lint.per-file-ignores]
|
|
45
69
|
"__init__.py" = ["F401", "F403"]
|
|
46
70
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|