Skip to content

Commit 49ae9ae

Browse files
committed
[py]: bump tox linting dependencies
1 parent 802c1f2 commit 49ae9ae

14 files changed

+7
-19
lines changed

py/selenium/webdriver/common/actions/interaction.py

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131

3232
class Interaction:
33-
3433
PAUSE = "pause"
3534

3635
def __init__(self, source) -> None:

py/selenium/webdriver/common/actions/mouse_button.py

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
class MouseButton:
20-
2120
LEFT = 0
2221
MIDDLE = 1
2322
RIGHT = 2

py/selenium/webdriver/common/bidi/console.py

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020

2121
class Console(Enum):
22-
2322
ALL = "all"
2423
LOG = "log"
2524
ERROR = "error"

py/selenium/webdriver/common/html5/application_cache.py

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525

2626
class ApplicationCache:
27-
2827
UNCACHED = 0
2928
IDLE = 1
3029
CHECKING = 2

py/selenium/webdriver/common/virtual_authenticator.py

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class Transport(str, Enum):
3939

4040

4141
class VirtualAuthenticatorOptions:
42-
4342
# These are so unnecessary but are now public API so we can't remove them without deprecating first.
4443
# These should not be class level state in here.
4544
Protocol = Protocol

py/selenium/webdriver/edge/webdriver.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
class WebDriver(ChromiumDriver):
3131
"""Controls the Microsoft Edge driver and allows you to drive the browser.
3232
33-
You will need to download the MSEdgeDriver (Chromium) executable from
34-
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
33+
You will need to download the MSEdgeDriver (Chromium) executable
34+
from https://developer.microsoft.com/en-us/microsoft-
35+
edge/tools/webdriver/
3536
"""
3637

3738
def __init__(

py/selenium/webdriver/firefox/firefox_binary.py

-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828

2929
class FirefoxBinary:
30-
3130
NO_FOCUS_LIBRARY_NAME = "x_ignore_nofocus.so"
3231

3332
def __init__(self, firefox_path=None, log_file=None):
@@ -205,7 +204,6 @@ def _modify_link_library_path(self):
205204
self._firefox_env["LD_PRELOAD"] = self.NO_FOCUS_LIBRARY_NAME
206205

207206
def _extract_and_check(self, profile, x86, amd64):
208-
209207
paths = [x86, amd64]
210208
built_path = ""
211209
for path in paths:

py/selenium/webdriver/firefox/firefox_profile.py

-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ def _write_user_prefs(self, user_prefs):
170170
f.write(f'user_pref("{key}", {json.dumps(value)});\n')
171171

172172
def _read_existing_userjs(self, userjs):
173-
174173
pref_pattern = re.compile(r'user_pref\("(.*)",\s(.*)\)')
175174
try:
176175
with open(userjs, encoding="utf-8") as f:

py/selenium/webdriver/firefox/remote_connection.py

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
class FirefoxRemoteConnection(RemoteConnection):
23-
2423
browser_name = DesiredCapabilities.FIREFOX["browserName"]
2524

2625
def __init__(self, remote_server_addr, keep_alive=True, ignore_proxy=False) -> None:

py/selenium/webdriver/firefox/webdriver.py

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939

4040
class WebDriver(RemoteWebDriver):
41-
4241
CONTEXT_CHROME = "chrome"
4342
CONTEXT_CONTENT = "content"
4443

py/selenium/webdriver/ie/options.py

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class ElementScrollBehavior(Enum):
2626

2727

2828
class Options(ArgOptions):
29-
3029
KEY = "se:ieOptions"
3130
SWITCHES = "ie.browserCommandLineSwitches"
3231

py/selenium/webdriver/remote/shadowroot.py

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323

2424
class ShadowRoot:
25-
2625
# TODO: We should look and see how we can create a search context like Java/.NET
2726

2827
def __init__(self, session, id_) -> None:

py/selenium/webdriver/safari/remote_connection.py

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
class SafariRemoteConnection(RemoteConnection):
23-
2423
browser_name = DesiredCapabilities.SAFARI["browserName"]
2524

2625
def __init__(self, remote_server_addr: str, keep_alive: bool = True, ignore_proxy: bool = False) -> None:

py/tox.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ force_single_line = True
3535
; checks linting for CI with stricter exiting when failing.
3636
skip_install = true
3737
deps =
38-
isort==5.11.2
38+
isort==5.11.4
3939
black==22.12.0
4040
; flake8 6+ requires python3.8+ specifically.
4141
flake8==5.0.4
4242
flake8-typing-imports==1.14.0
43-
docformatter==1.5.0
43+
docformatter==1.5.1
4444
commands =
4545
; execute isort in check only mode.
4646
isort --check-only --diff selenium/ test/ conftest.py
@@ -55,12 +55,12 @@ commands =
5555
; IMPORTANT: black & isort rewrite files, flake8 merely alerts to the failure.
5656
skip_install = true
5757
deps =
58-
isort==5.11.2
58+
isort==5.11.4
5959
black==22.12.0
6060
; flake8 6+ requires python3.8+ specifically.
6161
flake8==5.0.4
6262
flake8-typing-imports==1.14.0
63-
docformatter==1.5.0
63+
docformatter==1.5.1
6464
commands =
6565
isort selenium/ test/ conftest.py
6666
black selenium/ test/ conftest.py -l 120

0 commit comments

Comments
 (0)