Skip to content

Commit 2daba2e

Browse files
committed
[py] Run docformatter on tests also
1 parent 3fea436 commit 2daba2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

py/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def pytest_ignore_collect(path, config):
9797

9898

9999
def get_driver_class(driver_option):
100-
"""Generate the driver class name from the lowercase driver option"""
100+
"""Generate the driver class name from the lowercase driver option."""
101101
if driver_option == "webkitgtk":
102102
driver_class = "WebKitGTK"
103103
elif driver_option == "wpewebkit":

py/tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ commands =
4848
black --check --diff selenium/ test/ conftest.py
4949
autoflake --check-diff selenium/ test/ conftest.py
5050
flake8 selenium/ test/ conftest.py
51-
docformatter --check --diff selenium/
51+
docformatter --check --diff selenium/ test/ conftest.py
5252

5353
[testenv:linting]
5454
; A consolidated linting based recipe, responsible for executing linting tools across the code base.
@@ -74,4 +74,4 @@ commands =
7474
black selenium/ test/ conftest.py
7575
autoflake selenium/ test/ conftest.py
7676
flake8 selenium/ test/ conftest.py
77-
docformatter selenium/
77+
docformatter selenium/ test/ conftest.py

0 commit comments

Comments
 (0)