Skip to content

Commit 18d2f1a

Browse files
committed
add flake8-implicit-str-concat (ISC)
1 parent 1dec870 commit 18d2f1a

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

parsons/donorbox/donorbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ def _date_format_helper(self, date_string):
221221
continue
222222
raise ValueError(
223223
f"The date you supplied, {date_string}, is not a valid Donorbox format."
224-
+ "Try the following formats: YYYY-mm-dd YYYY/mm/dd YYYYmmdd dd-mm-YYYY"
224+
"Try the following formats: YYYY-mm-dd YYYY/mm/dd YYYYmmdd dd-mm-YYYY"
225225
)

parsons/geocode/census_geocoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def geocode_address_batch(self, table):
109109
if set(table.columns) != {"id", "street", "city", "state", "zip"}:
110110
msg = (
111111
"Table must ONLY include `['id', 'street', 'city', 'state', 'zip']` as"
112-
+ "columns. Tip: try using `table.cut()`"
112+
"columns. Tip: try using `table.cut()`"
113113
)
114114
raise ValueError(msg)
115115

parsons/scytl/scytl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
BROWSER_HEADERS = {
3131
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) "
32-
+ "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
32+
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
3333
}
3434

3535
TZ_INFO = {

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ select = [
5454
"ICN", # flake8-import-conventions (ICN)
5555
"Q", # flake8-quotes (Q)
5656
"TC", # flake8-type-checking (TC)
57+
"ISC", # flake8-implicit-str-concat (ISC)
5758
]
5859
ignore = [
5960
"E501", # line-too-long (E501)

test/test_airmeet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def test_fetch_session_attendance_exception_202(self):
276276
return_value={
277277
"statusCode": 202,
278278
"statusMessage": "Preparing your results. Try after 5 minutes"
279-
+ "to get the updated results",
279+
"to get the updated results",
280280
}
281281
)
282282

test/test_shopify.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,23 @@ def test_get_query_url(self, m):
120120
self.assertEqual(
121121
self.shopify.get_query_url(None, None, "orders", True),
122122
f"https://{SUBDOMAIN}.myshopify.com/admin/api/{API_VERSION}/orders/"
123-
+ "count.json?limit=250&status=any",
123+
"count.json?limit=250&status=any",
124124
)
125125
self.assertEqual(
126126
self.shopify.get_query_url("2020-10-20", None, "orders", True),
127127
f"https://{SUBDOMAIN}.myshopify.com/admin/api/{API_VERSION}/orders/"
128-
+ "count.json?limit=250&status=any&created_at_min=2020-10-20T00:00:00&"
129-
+ "created_at_max=2020-10-21T00:00:00",
128+
"count.json?limit=250&status=any&created_at_min=2020-10-20T00:00:00&"
129+
"created_at_max=2020-10-21T00:00:00",
130130
)
131131
self.assertEqual(
132132
self.shopify.get_query_url(None, 2, "orders", True),
133133
f"https://{SUBDOMAIN}.myshopify.com/admin/api/{API_VERSION}/orders/"
134-
+ "count.json?limit=250&status=any&since_id=2",
134+
"count.json?limit=250&status=any&since_id=2",
135135
)
136136
self.assertEqual(
137137
self.shopify.get_query_url(None, None, "orders", False),
138138
f"https://{SUBDOMAIN}.myshopify.com/admin/api/{API_VERSION}/orders.json?"
139-
+ "limit=250&status=any",
139+
"limit=250&status=any",
140140
)
141141

142142
@requests_mock.Mocker()

0 commit comments

Comments
 (0)