Skip to content

Commit 82f76a3

Browse files
committed
format.sh
1 parent 719af2d commit 82f76a3

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

py/selenium/webdriver/support/relative_locator.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17+
import warnings
1718
from typing import Dict
1819
from typing import List
1920
from typing import NoReturn
2021
from typing import Optional
2122
from typing import Union
2223
from typing import overload
2324

24-
import warnings
25-
2625
from selenium.common.exceptions import WebDriverException
2726
from selenium.webdriver.common.by import By
2827
from selenium.webdriver.common.by import ByType
@@ -36,7 +35,7 @@ def with_tag_name(tag_name: str) -> "RelativeBy":
3635
----------
3736
tag_name : str
3837
The DOM tag of element to start searching.
39-
38+
4039
Returns:
4140
--------
4241
RelativeBy
@@ -52,8 +51,9 @@ def with_tag_name(tag_name: str) -> "RelativeBy":
5251
- This method is deprecated and may be removed in future versions.
5352
- Please use `locate_with` instead.
5453
"""
55-
warnings.warn("This method is deprecated and may be removed in future versions. "
56-
"Please use `locate_with` instead.")
54+
warnings.warn(
55+
"This method is deprecated and may be removed in future versions. " "Please use `locate_with` instead."
56+
)
5757
if not tag_name:
5858
raise WebDriverException("tag_name can not be null")
5959
return RelativeBy({By.CSS_SELECTOR: tag_name})
@@ -266,10 +266,10 @@ def near(self, element_or_locator: Union[WebElement, LocatorType, None] = None,
266266
----------
267267
element_or_locator : Union[WebElement, Dict, None]
268268
Element to look near by the element or within a distance
269-
269+
270270
distance : int
271271
Distance in pixel
272-
272+
273273
Returns:
274274
--------
275275
RelativeBy

scripts/format.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ section "Buildifier"
1414
echo " buildifier" >&2
1515
bazel run //:buildifier
1616

17-
section "Java"
18-
echo " google-java-format" >&2
19-
find "$PWD/java" -type f -name '*.java' | xargs "$GOOGLE_JAVA_FORMAT" --replace
20-
21-
section "Javascript"
22-
echo " javascript/node/selenium-webdriver - prettier" >&2
23-
NODE_WEBDRIVER="${WORKSPACE_ROOT}/javascript/node/selenium-webdriver"
24-
bazel run //javascript:prettier -- "${NODE_WEBDRIVER}" --write "${NODE_WEBDRIVER}/.prettierrc"
25-
26-
section "Ruby"
27-
echo " rubocop" >&2
28-
bazel run //rb:lint
29-
30-
section "Rust"
31-
echo " rustfmt" >&2
32-
bazel run @rules_rust//:rustfmt
17+
# section "Java"
18+
# echo " google-java-format" >&2
19+
# find "$PWD/java" -type f -name '*.java' | xargs "$GOOGLE_JAVA_FORMAT" --replace
20+
21+
# section "Javascript"
22+
# echo " javascript/node/selenium-webdriver - prettier" >&2
23+
# NODE_WEBDRIVER="${WORKSPACE_ROOT}/javascript/node/selenium-webdriver"
24+
# bazel run //javascript:prettier -- "${NODE_WEBDRIVER}" --write "${NODE_WEBDRIVER}/.prettierrc"
25+
26+
# section "Ruby"
27+
# echo " rubocop" >&2
28+
# bazel run //rb:lint
29+
30+
# section "Rust"
31+
# echo " rustfmt" >&2
32+
# bazel run @rules_rust//:rustfmt
3333

3434
# TODO: use bazel target when rules_python supports formatting
3535
section "Python"

0 commit comments

Comments
 (0)