Skip to content

Commit dead34c

Browse files
committed
lint
Signed-off-by: Jacob Klegar <jacob@tecton.ai>
1 parent 698ec10 commit dead34c

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

sdk/python/feast/pyspark/launchers/aws/emr_utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ def _upload_jar(jar_s3_prefix: str, jar_path: str) -> str:
8686
with open(jar_path, "rb") as f:
8787
uri = urlparse(os.path.join(jar_s3_prefix, os.path.basename(jar_path)))
8888
return urlunparse(
89-
get_staging_client(uri.scheme).upload_fileobj(
90-
f, jar_path, remote_uri=uri,
91-
)
89+
get_staging_client(uri.scheme).upload_fileobj(f, jar_path, remote_uri=uri)
9290
)
9391

9492

sdk/python/feast/pyspark/launchers/k8s/k8s.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,11 @@ def historical_feature_retrieval(
276276
return cast(RetrievalJob, self._job_from_job_info(job_info))
277277

278278
def _upload_jar(self, jar_path: str) -> str:
279-
if jar_path.startswith("s3://") or jar_path.startswith("s3a://") or jar_path.startswith("https://"):
279+
if (
280+
jar_path.startswith("s3://")
281+
or jar_path.startswith("s3a://")
282+
or jar_path.startswith("https://")
283+
):
280284
return jar_path
281285
elif jar_path.startswith("file://"):
282286
local_jar_path = urlparse(jar_path).path

0 commit comments

Comments
 (0)