Skip to content

Commit 173d3aa

Browse files
authored
chore: Update pipfile to respect isort v5 (appium#577)
1 parent 74f599d commit 173d3aa

File tree

7 files changed

+17
-16
lines changed

7 files changed

+17
-16
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
rev: v4.3.21
33
hooks:
44
- id: isort
5-
args: ["-rc", "."]
5+
args: ["."]
66
- repo: https://github.com/pre-commit/mirrors-mypy
7-
rev: 'v0.782'
7+
rev: 'v0.800'
88
hooks:
99
- id: mypy
10-
entry: mypy appium/ test/
10+
entry: mypy appium/ test/functional
1111
pass_filenames: false
1212
- repo: https://github.com/psf/black
1313
rev: 20.8b1

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ check-all: ## Run all lint checks and unittest
77

88
.PHONY: isort
99
isort: ## Run isort
10-
python -m isort $(ARGS) -rc .
10+
python -m isort $(ARGS) .
1111

1212
.PHONY: black
1313
black: ## Run black
@@ -20,7 +20,7 @@ pylint: ## Run pylint
2020

2121
.PHONY: mypy
2222
mypy: ## Run mypy
23-
python -m mypy appium test
23+
python -m mypy appium test/functional
2424

2525
.PHONY: unittest
2626
unittest: ## Run unittest

Pipfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7-
pre-commit = "~=2.6"
7+
pre-commit = "~=2.10"
88

99
[packages]
1010
selenium = "~=3.141"
1111

1212
black = "==20.8b1"
1313

14-
pytest = "~=6.0"
15-
pytest-cov = "~=2.10"
14+
pytest = "~=6.2"
15+
pytest-cov = "~=2.11"
1616

17-
tox = "~=3.19"
17+
tox = "~=3.21"
1818
tox-travis = "~=0.12"
1919

2020
httpretty = "~=1.0"
2121
python-dateutil = "~=2.8"
2222
mock = "~=4.0"
2323

24-
pylint = "~=2.5"
24+
pylint = "~=2.6"
2525
astroid = "~=2.4"
26-
isort = "~=4.3" # TODO Can be 5> when pylint uses isort 5>
26+
isort = "~=5.0"
2727

28-
mypy = "==0.782"
28+
mypy = "~=0.800"

appium/webdriver/common/multi_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
from appium.webdriver.mobilecommand import MobileCommand as Command
2525

2626
if TYPE_CHECKING:
27+
from appium.webdriver.common.touch_action import TouchAction
2728
from appium.webdriver.webdriver import WebDriver
2829
from appium.webdriver.webelement import WebElement
29-
from appium.webdriver.common.touch_action import TouchAction
3030

3131
T = TypeVar('T', bound='MultiAction')
3232

appium/webdriver/common/touch_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
from appium.webdriver.mobilecommand import MobileCommand as Command
3030

3131
if TYPE_CHECKING:
32-
from appium.webdriver.webelement import WebElement
3332
from appium.webdriver.webdriver import WebDriver
33+
from appium.webdriver.webelement import WebElement
3434

3535
T = TypeVar('T', bound='TouchAction')
3636

test/functional/android/helper/test_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
from . import desired_capabilities
2727

2828
if TYPE_CHECKING:
29-
from appium.webdriver.webelement import WebElement
3029
from appium.webdriver.webdriver import WebDriver
30+
from appium.webdriver.webelement import WebElement
3131

3232
# the emulator is sometimes slow and needs time to think
3333
SLEEPY_TIME = 10

test/unit/helper/test_helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
SERVER_URL_BASE = 'http://localhost:4723/wd/hub'
2424

2525
if TYPE_CHECKING:
26-
from appium.webdriver.webdriver import WebDriver
2726
from httpretty.core import HTTPrettyRequestEmpty
2827

28+
from appium.webdriver.webdriver import WebDriver
29+
2930

3031
def appium_command(command: str) -> str:
3132
"""Return a command of Appium

0 commit comments

Comments
 (0)