Skip to content

Commit c044441

Browse files
committed
[py]: Bump black & isort versions
1 parent 8cfe8a4 commit c044441

File tree

7 files changed

+4
-12
lines changed

7 files changed

+4
-12
lines changed

py/selenium/webdriver/remote/remote_connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ def _request(self, method, url, body=None):
326326
if response.headers.get("Content-Type", None):
327327
content_type = response.headers.get("Content-Type", None).split(";")
328328
if not any([x.startswith("image/png") for x in content_type]):
329-
330329
try:
331330
data = utils.load_json(data.strip())
332331
except ValueError:

py/test/selenium/webdriver/chrome/proxy_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424

2525
def test_bad_proxy_doesnt_interfere():
26-
2726
# these values should be ignored if ignore_local_proxy_environment_variables() is called.
2827
os.environ["https_proxy"] = "bad"
2928
os.environ["http_proxy"] = "bad"

py/test/selenium/webdriver/common/upload_tests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def wrapped(filename):
3434

3535

3636
def test_can_upload_file(driver, pages, get_local_path):
37-
3837
pages.load("upload.html")
3938

4039
driver.find_element(By.ID, "upload").send_keys(get_local_path("test_file.txt"))
@@ -46,7 +45,6 @@ def test_can_upload_file(driver, pages, get_local_path):
4645

4746

4847
def test_can_upload_two_files(driver, pages, get_local_path):
49-
5048
pages.load("upload.html")
5149
two_file_paths = get_local_path("test_file.txt") + "\n" + get_local_path("test_file2.txt")
5250
driver.find_element(By.ID, "upload").send_keys(two_file_paths)
@@ -62,7 +60,6 @@ def test_can_upload_two_files(driver, pages, get_local_path):
6260
@pytest.mark.xfail_chrome
6361
@pytest.mark.xfail_safari
6462
def test_file_is_uploaded_to_remote_machine_on_select(driver, pages, get_local_path):
65-
6663
uploaded_files = []
6764
original_upload_func = WebElement._upload
6865

py/test/selenium/webdriver/common/virtual_authenticator_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757

5858

5959
def create_rk_enabled_u2f_authenticator(driver) -> WebDriver:
60-
6160
options = VirtualAuthenticatorOptions()
6261
options.protocol = VirtualAuthenticatorOptions.Protocol.U2F
6362
options.has_resident_key = True

py/test/selenium/webdriver/common/w3c_interaction_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ def test_drag_and_drop(driver, pages):
133133

134134

135135
def test_context_click(driver, pages):
136-
137136
pages.load("javascriptPage.html")
138137
toContextClick = driver.find_element(By.ID, "doubleClickField")
139138

py/test/unit/selenium/webdriver/virtual_authenticator/credentials_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def data() -> Tuple:
5656

5757

5858
def test_rk_enabled_credential(data):
59-
6059
_id, rp_id, user_handle, privatekey, sign_count = data
6160

6261
credential = Credential.create_resident_credential(_id, rp_id, user_handle, privatekey, sign_count)

py/tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ force_single_line = True
3535
; checks linting for CI with stricter exiting when failing.
3636
skip_install = true
3737
deps =
38-
isort==5.11.4
39-
black==22.12.0
38+
isort==5.12.0
39+
black==23.1.0
4040
; flake8 6+ requires python3.8+ specifically.
4141
flake8==5.0.4
4242
flake8-typing-imports==1.14.0
@@ -55,8 +55,8 @@ commands =
5555
; IMPORTANT: black & isort rewrite files, flake8 merely alerts to the failure.
5656
skip_install = true
5757
deps =
58-
isort==5.11.4
59-
black==22.12.0
58+
isort==5.12.0
59+
black==23.1.0
6060
; flake8 6+ requires python3.8+ specifically.
6161
flake8==5.0.4
6262
flake8-typing-imports==1.14.0

0 commit comments

Comments
 (0)