File tree Expand file tree Collapse file tree 7 files changed +17
-16
lines changed
functional/android/helper Expand file tree Collapse file tree 7 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 2
2
rev : v4.3.21
3
3
hooks :
4
4
- id : isort
5
- args : ["-rc", " ."]
5
+ args : ["."]
6
6
- repo : https://github.com/pre-commit/mirrors-mypy
7
- rev : ' v0.782 '
7
+ rev : ' v0.800 '
8
8
hooks :
9
9
- id : mypy
10
- entry : mypy appium/ test/
10
+ entry : mypy appium/ test/functional
11
11
pass_filenames : false
12
12
- repo : https://github.com/psf/black
13
13
rev : 20.8b1
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ check-all: ## Run all lint checks and unittest
7
7
8
8
.PHONY : isort
9
9
isort : # # Run isort
10
- python -m isort $(ARGS ) -rc .
10
+ python -m isort $(ARGS ) .
11
11
12
12
.PHONY : black
13
13
black : # # Run black
@@ -20,7 +20,7 @@ pylint: ## Run pylint
20
20
21
21
.PHONY : mypy
22
22
mypy : # # Run mypy
23
- python -m mypy appium test
23
+ python -m mypy appium test/functional
24
24
25
25
.PHONY : unittest
26
26
unittest : # # Run unittest
Original file line number Diff line number Diff line change @@ -4,25 +4,25 @@ url = "https://pypi.org/simple"
4
4
verify_ssl = true
5
5
6
6
[dev-packages ]
7
- pre-commit = " ~=2.6 "
7
+ pre-commit = " ~=2.10 "
8
8
9
9
[packages ]
10
10
selenium = " ~=3.141"
11
11
12
12
black = " ==20.8b1"
13
13
14
- pytest = " ~=6.0 "
15
- pytest-cov = " ~=2.10 "
14
+ pytest = " ~=6.2 "
15
+ pytest-cov = " ~=2.11 "
16
16
17
- tox = " ~=3.19 "
17
+ tox = " ~=3.21 "
18
18
tox-travis = " ~=0.12"
19
19
20
20
httpretty = " ~=1.0"
21
21
python-dateutil = " ~=2.8"
22
22
mock = " ~=4.0"
23
23
24
- pylint = " ~=2.5 "
24
+ pylint = " ~=2.6 "
25
25
astroid = " ~=2.4"
26
- isort = " ~=4.3 " # TODO Can be 5> when pylint uses isort 5>
26
+ isort = " ~=5.0 "
27
27
28
- mypy = " ==0.782 "
28
+ mypy = " ~=0.800 "
Original file line number Diff line number Diff line change 24
24
from appium .webdriver .mobilecommand import MobileCommand as Command
25
25
26
26
if TYPE_CHECKING :
27
+ from appium .webdriver .common .touch_action import TouchAction
27
28
from appium .webdriver .webdriver import WebDriver
28
29
from appium .webdriver .webelement import WebElement
29
- from appium .webdriver .common .touch_action import TouchAction
30
30
31
31
T = TypeVar ('T' , bound = 'MultiAction' )
32
32
Original file line number Diff line number Diff line change 29
29
from appium .webdriver .mobilecommand import MobileCommand as Command
30
30
31
31
if TYPE_CHECKING :
32
- from appium .webdriver .webelement import WebElement
33
32
from appium .webdriver .webdriver import WebDriver
33
+ from appium .webdriver .webelement import WebElement
34
34
35
35
T = TypeVar ('T' , bound = 'TouchAction' )
36
36
Original file line number Diff line number Diff line change 26
26
from . import desired_capabilities
27
27
28
28
if TYPE_CHECKING :
29
- from appium .webdriver .webelement import WebElement
30
29
from appium .webdriver .webdriver import WebDriver
30
+ from appium .webdriver .webelement import WebElement
31
31
32
32
# the emulator is sometimes slow and needs time to think
33
33
SLEEPY_TIME = 10
Original file line number Diff line number Diff line change 23
23
SERVER_URL_BASE = 'http://localhost:4723/wd/hub'
24
24
25
25
if TYPE_CHECKING :
26
- from appium .webdriver .webdriver import WebDriver
27
26
from httpretty .core import HTTPrettyRequestEmpty
28
27
28
+ from appium .webdriver .webdriver import WebDriver
29
+
29
30
30
31
def appium_command (command : str ) -> str :
31
32
"""Return a command of Appium
You can’t perform that action at this time.
0 commit comments