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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: osascript2
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: A tiny python osascript wrapper
5
5
  License: GPLv3
6
6
  Project-URL: Homepage, https://github.com/zwimer/osascript2
@@ -0,0 +1,5 @@
1
+ from .osascript import run, run_bytes
2
+
3
+ __version__ = "1.2.2"
4
+
5
+ __all__ = ("__version__", "run", "run_bytes")
@@ -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
- Execute the given applescript command or file (run with subprocess' text=True)
26
- Return the (return code, stdout, and stderr)
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
- Execute the given applescript command or file (run with subprocess' text=False)
34
- Return the (return code, stdout, and stderr)
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))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: osascript2
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: A tiny python osascript wrapper
5
5
  License: GPLv3
6
6
  Project-URL: Homepage, https://github.com/zwimer/osascript2
@@ -40,7 +40,31 @@ target-version = ["py314"]
40
40
  [tool.ruff]
41
41
  line-length = 120
42
42
  [tool.ruff.lint]
43
- ignore=["E731", "I001"]
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
 
@@ -1,5 +0,0 @@
1
- from .osascript import run
2
-
3
- __version__ = "1.2.0"
4
-
5
- __all__ = ("__version__", "run", "run_bytes")
File without changes
File without changes
File without changes