Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
rev: v1.4
hooks:
- id: autopep8
args: ["--global-config", ".config-pep8", "-i"]
args: ["-a", "--global-config", ".config-pep8", "-i"]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.20
hooks:
Expand Down
4 changes: 2 additions & 2 deletions appium/webdriver/extensions/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ def app_strings(self, language=None, string_file=None):
string_file (str): the name of the string file to query
"""
data = {}
if language != None:
if language is not None:
data['language'] = language
if string_file != None:
if string_file is not None:
data['stringFile'] = string_file
return self.execute(Command.GET_APP_STRINGS, data)['value']

Expand Down
4 changes: 2 additions & 2 deletions ci.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash


if ! python -m autopep8 -r --global-config .config-pep8 -i . ; then
echo "Please run command 'python -m autopep8 -r --global-config .config-pep8 -i .' on your local and commit the result"
if ! python -m autopep8 --exit-code -a -r --global-config .config-pep8 -i . ; then
echo "Please run command 'python -m autopep8 -a -r --global-config .config-pep8 -i .' on your local and commit the result"
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion test/unit/webdriver/device/location_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_set_location_without_altitude(self):
d = get_httpretty_request_body(httpretty.last_request())
assert abs(d['location']['latitude'] - 11.1) <= FLT_EPSILON
assert abs(d['location']['longitude'] - 22.2) <= FLT_EPSILON
assert d['location'].get('altitude') == None
assert d['location'].get('altitude') is None

@httpretty.activate
def test_location(self):
Expand Down