Skip to content

Commit 3448c99

Browse files
authored
Merge pull request #93 from Intergration-Automation-Testing/dev
Dev
2 parents 97bbc5e + 8e5bccf commit 3448c99

File tree

11 files changed

+25
-21
lines changed

11 files changed

+25
-21
lines changed

.github/workflows/auto-control-github-actions_dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Set up Python 3.7
18+
- name: Set up Python 3.8
1919
uses: actions/setup-python@v3
2020
with:
21-
python-version: "3.7"
21+
python-version: "3.8"
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip wheel

.github/workflows/auto-control-github-actions_stable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Set up Python 3.5
18+
- name: Set up Python 3.8
1919
uses: actions/setup-python@v3
2020
with:
21-
python-version: "3.7"
21+
python-version: "3.8"
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip wheel

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

je_auto_control/linux_with_x11/listener/x11_linux_listener.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __init__(self, default_daemon=True):
9595
self.root = current_display.screen().root
9696
self.context = None
9797

98-
def check_is_press(self, keycode: int):
98+
def check_is_press(self, keycode: int) -> bool:
9999
"""
100100
:param keycode check this keycode is press?
101101
"""
@@ -148,7 +148,7 @@ def stop_record(self) -> Queue:
148148
xwindows_listener.start()
149149

150150

151-
def check_key_is_press(keycode: int) -> int:
151+
def check_key_is_press(keycode: int) -> bool:
152152
"""
153153
:param keycode check this keycode is press?
154154
"""

je_auto_control/linux_with_x11/mouse/x11_linux_mouse_control.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,3 @@ def scroll(scroll_value: int, scroll_direction: int) -> None:
8383
for i in range(scroll_value):
8484
click_mouse(scroll_direction)
8585
total = total + i
86-
print("Scroll Value:" + total)

je_auto_control/osx/mouse/osx_mouse.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def position() -> Tuple[int, int]:
2020
"""
2121
get mouse current position
2222
"""
23-
return (Quartz.NSEvent.mouseLocation().x, Quartz.NSEvent.mouseLocation().y)
23+
return Quartz.NSEvent.mouseLocation().x, Quartz.NSEvent.mouseLocation().y
2424

2525

2626
def mouse_event(event, x: int, y: int, mouse_button: int) -> None:
@@ -105,4 +105,3 @@ def scroll(scroll_value: int) -> None:
105105
)
106106
Quartz.CGEventPost(Quartz.kCGHIDEventTap, scroll_event)
107107
total = total + do_scroll
108-
print("Scroll Value:" + total)

je_auto_control/utils/callback/callback_function_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def callback_function(
121121
callback_function_param: [dict, None] = None,
122122
callback_param_method: str = "kwargs",
123123
**kwargs
124-
):
124+
) -> typing.Any:
125125
"""
126126
:param trigger_function_name: what function we want to trigger only accept function in event_dict
127127
:param callback_function: what function we want to callback

je_auto_control/wrapper/auto_control_keyboard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
from je_auto_control.wrapper.platform_wrapper import keyboard_keys_table
1717

1818

19-
def get_special_table():
19+
def get_special_table() -> dict:
2020
return special_mouse_keys_table
2121

2222

23-
def get_keyboard_keys_table():
23+
def get_keyboard_keys_table() -> dict:
2424
return keyboard_keys_table
2525

2626

je_auto_control/wrapper/auto_control_mouse.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from je_auto_control.wrapper.platform_wrapper import special_mouse_keys_table
2020

2121

22-
def get_mouse_table():
22+
def get_mouse_table() -> dict:
2323
return mouse_keys_table
2424

2525

@@ -167,7 +167,8 @@ def click_mouse(mouse_keycode: [int, str], x: int = None, y: int = None) -> Tupl
167167
print(repr(error), file=sys.stderr)
168168

169169

170-
def mouse_scroll(scroll_value: int, x: int = None, y: int = None, scroll_direction: str = "scroll_down") -> Tuple[int, str]:
170+
def mouse_scroll(
171+
scroll_value: int, x: int = None, y: int = None, scroll_direction: str = "scroll_down") -> Tuple[int, str]:
171172
""""
172173
:param scroll_value scroll count
173174
:param x mouse click x position

0 commit comments

Comments
 (0)