Skip to content

Commit

Permalink
[py]: bump tox linting dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Dec 31, 2022
1 parent 802c1f2 commit 49ae9ae
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 19 deletions.
1 change: 0 additions & 1 deletion py/selenium/webdriver/common/actions/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@


class Interaction:

PAUSE = "pause"

def __init__(self, source) -> None:
Expand Down
1 change: 0 additions & 1 deletion py/selenium/webdriver/common/actions/mouse_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


class MouseButton:

LEFT = 0
MIDDLE = 1
RIGHT = 2
Expand Down
1 change: 0 additions & 1 deletion py/selenium/webdriver/common/bidi/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


class Console(Enum):

ALL = "all"
LOG = "log"
ERROR = "error"
1 change: 0 additions & 1 deletion py/selenium/webdriver/common/html5/application_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@


class ApplicationCache:

UNCACHED = 0
IDLE = 1
CHECKING = 2
Expand Down
1 change: 0 additions & 1 deletion py/selenium/webdriver/common/virtual_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class Transport(str, Enum):


class VirtualAuthenticatorOptions:

# These are so unnecessary but are now public API so we can't remove them without deprecating first.
# These should not be class level state in here.
Protocol = Protocol
Expand Down
5 changes: 3 additions & 2 deletions py/selenium/webdriver/edge/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
class WebDriver(ChromiumDriver):
"""Controls the Microsoft Edge driver and allows you to drive the browser.
You will need to download the MSEdgeDriver (Chromium) executable from
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
You will need to download the MSEdgeDriver (Chromium) executable
from https://developer.microsoft.com/en-us/microsoft-
edge/tools/webdriver/
"""

def __init__(
Expand Down
2 changes: 0 additions & 2 deletions py/selenium/webdriver/firefox/firefox_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@


class FirefoxBinary:

NO_FOCUS_LIBRARY_NAME = "x_ignore_nofocus.so"

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

def _extract_and_check(self, profile, x86, amd64):

paths = [x86, amd64]
built_path = ""
for path in paths:
Expand Down
1 change: 0 additions & 1 deletion py/selenium/webdriver/firefox/firefox_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ def _write_user_prefs(self, user_prefs):
f.write(f'user_pref("{key}", {json.dumps(value)});\n')

def _read_existing_userjs(self, userjs):

pref_pattern = re.compile(r'user_pref\("(.*)",\s(.*)\)')
try:
with open(userjs, encoding="utf-8") as f:
Expand Down
1 change: 0 additions & 1 deletion py/selenium/webdriver/firefox/remote_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


class FirefoxRemoteConnection(RemoteConnection):

browser_name = DesiredCapabilities.FIREFOX["browserName"]

def __init__(self, remote_server_addr, keep_alive=True, ignore_proxy=False) -> None:
Expand Down
1 change: 0 additions & 1 deletion py/selenium/webdriver/firefox/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@


class WebDriver(RemoteWebDriver):

CONTEXT_CHROME = "chrome"
CONTEXT_CONTENT = "content"

Expand Down
1 change: 0 additions & 1 deletion py/selenium/webdriver/ie/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class ElementScrollBehavior(Enum):


class Options(ArgOptions):

KEY = "se:ieOptions"
SWITCHES = "ie.browserCommandLineSwitches"

Expand Down
1 change: 0 additions & 1 deletion py/selenium/webdriver/remote/shadowroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@


class ShadowRoot:

# TODO: We should look and see how we can create a search context like Java/.NET

def __init__(self, session, id_) -> None:
Expand Down
1 change: 0 additions & 1 deletion py/selenium/webdriver/safari/remote_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


class SafariRemoteConnection(RemoteConnection):

browser_name = DesiredCapabilities.SAFARI["browserName"]

def __init__(self, remote_server_addr: str, keep_alive: bool = True, ignore_proxy: bool = False) -> None:
Expand Down
8 changes: 4 additions & 4 deletions py/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ force_single_line = True
; checks linting for CI with stricter exiting when failing.
skip_install = true
deps =
isort==5.11.2
isort==5.11.4
black==22.12.0
; flake8 6+ requires python3.8+ specifically.
flake8==5.0.4
flake8-typing-imports==1.14.0
docformatter==1.5.0
docformatter==1.5.1
commands =
; execute isort in check only mode.
isort --check-only --diff selenium/ test/ conftest.py
Expand All @@ -55,12 +55,12 @@ commands =
; IMPORTANT: black & isort rewrite files, flake8 merely alerts to the failure.
skip_install = true
deps =
isort==5.11.2
isort==5.11.4
black==22.12.0
; flake8 6+ requires python3.8+ specifically.
flake8==5.0.4
flake8-typing-imports==1.14.0
docformatter==1.5.0
docformatter==1.5.1
commands =
isort selenium/ test/ conftest.py
black selenium/ test/ conftest.py -l 120
Expand Down

0 comments on commit 49ae9ae

Please sign in to comment.