Skip to content

Commit 984486d

Browse files
Samuel ScullySamuel Scully
authored andcommitted
Fix lint
1 parent f464195 commit 984486d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

opencage/geocoder.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ def __init__(
146146
self.key = key if key is not None else os.environ.get('OPENCAGE_API_KEY')
147147

148148
if self.key is None:
149-
raise ValueError("API key not provided. Either pass a 'key' parameter or set the OPENCAGE_API_KEY environment variable.")
149+
raise ValueError(
150+
"API key not provided. "
151+
"Either pass a 'key' parameter or set the OPENCAGE_API_KEY environment variable."
152+
)
150153

151154
if protocol and protocol not in ('http', 'https'):
152155
protocol = 'https'

test/test_error_invalid_input.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def test_must_be_unicode_string():
3535
assert str(excinfo.value) == f"Input must be a unicode string, not {latin1_string!r}"
3636
assert excinfo.value.bad_value == latin1_string
3737

38+
3839
@responses.activate
3940
def test_reject_out_of_bounds_coordinates():
4041
"""Test that reverse geocoding rejects out-of-bounds latitude and longitude values."""

test/test_geocoder_args.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ def test_custom_domain():
2323
"""Test that custom domain can be set"""
2424
geocoder = OpenCageGeocode('abcde', domain='example.com')
2525
assert geocoder.url == 'https://example.com/geocode/v1/json'
26-

0 commit comments

Comments
 (0)