Skip to content

Commit 0d3d21f

Browse files
committed
Lint
1 parent 748ffe4 commit 0d3d21f

8 files changed

Lines changed: 25 additions & 45 deletions

File tree

cli/polyaxon/_sdk/api/agents_v1_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,7 @@ def get_agent_with_http_info(
988988
for _key, _val in _params["kwargs"].items():
989989
if _key not in _all_params:
990990
raise ApiTypeError(
991-
"Got an unexpected keyword argument '%s'"
992-
" to method get_agent" % _key
991+
"Got an unexpected keyword argument '%s' to method get_agent" % _key
993992
)
994993
_params[_key] = _val
995994
del _params["kwargs"]

cli/polyaxon/_sdk/api/auth_v1_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def login_with_http_info(self, body: V1Credentials, **kwargs): # noqa: E501
241241
for _key, _val in _params["kwargs"].items():
242242
if _key not in _all_params:
243243
raise ApiTypeError(
244-
"Got an unexpected keyword argument '%s'" " to method login" % _key
244+
"Got an unexpected keyword argument '%s' to method login" % _key
245245
)
246246
_params[_key] = _val
247247
del _params["kwargs"]
@@ -685,7 +685,7 @@ def signup_with_http_info(self, body: V1UserSingup, **kwargs): # noqa: E501
685685
for _key, _val in _params["kwargs"].items():
686686
if _key not in _all_params:
687687
raise ApiTypeError(
688-
"Got an unexpected keyword argument '%s'" " to method signup" % _key
688+
"Got an unexpected keyword argument '%s' to method signup" % _key
689689
)
690690
_params[_key] = _val
691691
del _params["kwargs"]
@@ -834,7 +834,7 @@ def trial_with_http_info(self, body: V1TrialStart, **kwargs): # noqa: E501
834834
for _key, _val in _params["kwargs"].items():
835835
if _key not in _all_params:
836836
raise ApiTypeError(
837-
"Got an unexpected keyword argument '%s'" " to method trial" % _key
837+
"Got an unexpected keyword argument '%s' to method trial" % _key
838838
)
839839
_params[_key] = _val
840840
del _params["kwargs"]

cli/polyaxon/_sdk/api/queues_v1_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,7 @@ def get_queue_with_http_info(
484484
for _key, _val in _params["kwargs"].items():
485485
if _key not in _all_params:
486486
raise ApiTypeError(
487-
"Got an unexpected keyword argument '%s'"
488-
" to method get_queue" % _key
487+
"Got an unexpected keyword argument '%s' to method get_queue" % _key
489488
)
490489
_params[_key] = _val
491490
del _params["kwargs"]

cli/polyaxon/_sdk/api/runs_v1_api.py

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,8 +1381,7 @@ def copy_run_with_http_info(
13811381
for _key, _val in _params["kwargs"].items():
13821382
if _key not in _all_params:
13831383
raise ApiTypeError(
1384-
"Got an unexpected keyword argument '%s'"
1385-
" to method copy_run" % _key
1384+
"Got an unexpected keyword argument '%s' to method copy_run" % _key
13861385
)
13871386
_params[_key] = _val
13881387
del _params["kwargs"]
@@ -3575,8 +3574,7 @@ def get_run_with_http_info(
35753574
for _key, _val in _params["kwargs"].items():
35763575
if _key not in _all_params:
35773576
raise ApiTypeError(
3578-
"Got an unexpected keyword argument '%s'"
3579-
" to method get_run" % _key
3577+
"Got an unexpected keyword argument '%s' to method get_run" % _key
35803578
)
35813579
_params[_key] = _val
35823580
del _params["kwargs"]
@@ -9421,8 +9419,7 @@ def list_runs_with_http_info(
94219419
for _key, _val in _params["kwargs"].items():
94229420
if _key not in _all_params:
94239421
raise ApiTypeError(
9424-
"Got an unexpected keyword argument '%s'"
9425-
" to method list_runs" % _key
9422+
"Got an unexpected keyword argument '%s' to method list_runs" % _key
94269423
)
94279424
_params[_key] = _val
94289425
del _params["kwargs"]
@@ -9814,8 +9811,7 @@ def patch_run_with_http_info(
98149811
for _key, _val in _params["kwargs"].items():
98159812
if _key not in _all_params:
98169813
raise ApiTypeError(
9817-
"Got an unexpected keyword argument '%s'"
9818-
" to method patch_run" % _key
9814+
"Got an unexpected keyword argument '%s' to method patch_run" % _key
98199815
)
98209816
_params[_key] = _val
98219817
del _params["kwargs"]
@@ -10909,8 +10905,7 @@ def skip_run_with_http_info(
1090910905
for _key, _val in _params["kwargs"].items():
1091010906
if _key not in _all_params:
1091110907
raise ApiTypeError(
10912-
"Got an unexpected keyword argument '%s'"
10913-
" to method skip_run" % _key
10908+
"Got an unexpected keyword argument '%s' to method skip_run" % _key
1091410909
)
1091510910
_params[_key] = _val
1091610911
del _params["kwargs"]
@@ -11071,8 +11066,7 @@ def skip_runs_with_http_info(
1107111066
for _key, _val in _params["kwargs"].items():
1107211067
if _key not in _all_params:
1107311068
raise ApiTypeError(
11074-
"Got an unexpected keyword argument '%s'"
11075-
" to method skip_runs" % _key
11069+
"Got an unexpected keyword argument '%s' to method skip_runs" % _key
1107611070
)
1107711071
_params[_key] = _val
1107811072
del _params["kwargs"]
@@ -11255,8 +11249,7 @@ def stop_run_with_http_info(
1125511249
for _key, _val in _params["kwargs"].items():
1125611250
if _key not in _all_params:
1125711251
raise ApiTypeError(
11258-
"Got an unexpected keyword argument '%s'"
11259-
" to method stop_run" % _key
11252+
"Got an unexpected keyword argument '%s' to method stop_run" % _key
1126011253
)
1126111254
_params[_key] = _val
1126211255
del _params["kwargs"]
@@ -11417,8 +11410,7 @@ def stop_runs_with_http_info(
1141711410
for _key, _val in _params["kwargs"].items():
1141811411
if _key not in _all_params:
1141911412
raise ApiTypeError(
11420-
"Got an unexpected keyword argument '%s'"
11421-
" to method stop_runs" % _key
11413+
"Got an unexpected keyword argument '%s' to method stop_runs" % _key
1142211414
)
1142311415
_params[_key] = _val
1142411416
del _params["kwargs"]
@@ -11591,8 +11583,7 @@ def sync_run_with_http_info(
1159111583
for _key, _val in _params["kwargs"].items():
1159211584
if _key not in _all_params:
1159311585
raise ApiTypeError(
11594-
"Got an unexpected keyword argument '%s'"
11595-
" to method sync_run" % _key
11586+
"Got an unexpected keyword argument '%s' to method sync_run" % _key
1159611587
)
1159711588
_params[_key] = _val
1159811589
del _params["kwargs"]
@@ -11761,8 +11752,7 @@ def tag_runs_with_http_info(
1176111752
for _key, _val in _params["kwargs"].items():
1176211753
if _key not in _all_params:
1176311754
raise ApiTypeError(
11764-
"Got an unexpected keyword argument '%s'"
11765-
" to method tag_runs" % _key
11755+
"Got an unexpected keyword argument '%s' to method tag_runs" % _key
1176611756
)
1176711757
_params[_key] = _val
1176811758
del _params["kwargs"]

cli/polyaxon/_sdk/api/tags_v1_api.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,7 @@ def get_tag_with_http_info(
450450
for _key, _val in _params["kwargs"].items():
451451
if _key not in _all_params:
452452
raise ApiTypeError(
453-
"Got an unexpected keyword argument '%s'"
454-
" to method get_tag" % _key
453+
"Got an unexpected keyword argument '%s' to method get_tag" % _key
455454
)
456455
_params[_key] = _val
457456
del _params["kwargs"]
@@ -675,8 +674,7 @@ def list_tags_with_http_info(
675674
for _key, _val in _params["kwargs"].items():
676675
if _key not in _all_params:
677676
raise ApiTypeError(
678-
"Got an unexpected keyword argument '%s'"
679-
" to method list_tags" % _key
677+
"Got an unexpected keyword argument '%s' to method list_tags" % _key
680678
)
681679
_params[_key] = _val
682680
del _params["kwargs"]
@@ -918,8 +916,7 @@ def load_tags_with_http_info(
918916
for _key, _val in _params["kwargs"].items():
919917
if _key not in _all_params:
920918
raise ApiTypeError(
921-
"Got an unexpected keyword argument '%s'"
922-
" to method load_tags" % _key
919+
"Got an unexpected keyword argument '%s' to method load_tags" % _key
923920
)
924921
_params[_key] = _val
925922
del _params["kwargs"]
@@ -1100,8 +1097,7 @@ def patch_tag_with_http_info(
11001097
for _key, _val in _params["kwargs"].items():
11011098
if _key not in _all_params:
11021099
raise ApiTypeError(
1103-
"Got an unexpected keyword argument '%s'"
1104-
" to method patch_tag" % _key
1100+
"Got an unexpected keyword argument '%s' to method patch_tag" % _key
11051101
)
11061102
_params[_key] = _val
11071103
del _params["kwargs"]
@@ -1269,8 +1265,7 @@ def sync_tags_with_http_info(
12691265
for _key, _val in _params["kwargs"].items():
12701266
if _key not in _all_params:
12711267
raise ApiTypeError(
1272-
"Got an unexpected keyword argument '%s'"
1273-
" to method sync_tags" % _key
1268+
"Got an unexpected keyword argument '%s' to method sync_tags" % _key
12741269
)
12751270
_params[_key] = _val
12761271
del _params["kwargs"]

cli/polyaxon/_sdk/api/teams_v1_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,8 +1462,7 @@ def get_team_with_http_info(
14621462
for _key, _val in _params["kwargs"].items():
14631463
if _key not in _all_params:
14641464
raise ApiTypeError(
1465-
"Got an unexpected keyword argument '%s'"
1466-
" to method get_team" % _key
1465+
"Got an unexpected keyword argument '%s' to method get_team" % _key
14671466
)
14681467
_params[_key] = _val
14691468
del _params["kwargs"]

cli/polyaxon/_sdk/api/users_v1_api.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,7 @@ def get_token_with_http_info(
803803
for _key, _val in _params["kwargs"].items():
804804
if _key not in _all_params:
805805
raise ApiTypeError(
806-
"Got an unexpected keyword argument '%s'"
807-
" to method get_token" % _key
806+
"Got an unexpected keyword argument '%s' to method get_token" % _key
808807
)
809808
_params[_key] = _val
810809
del _params["kwargs"]
@@ -940,8 +939,7 @@ def get_user_with_http_info(self, **kwargs): # noqa: E501
940939
for _key, _val in _params["kwargs"].items():
941940
if _key not in _all_params:
942941
raise ApiTypeError(
943-
"Got an unexpected keyword argument '%s'"
944-
" to method get_user" % _key
942+
"Got an unexpected keyword argument '%s' to method get_user" % _key
945943
)
946944
_params[_key] = _val
947945
del _params["kwargs"]

cli/tests/test_polyflow/test_workflows/test_matrix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ def assert_equal(config, _v1, _v2, _v3):
252252
assert config.to_json() == orjson_dumps(config_dict)
253253

254254
def test_matrix_datetime_range_option(self):
255-
deserialize_datetime = (
256-
lambda x: datetime.fromisoformat(x) if isinstance(x, str) else x
255+
deserialize_datetime = lambda x: (
256+
datetime.fromisoformat(x) if isinstance(x, str) else x
257257
)
258258

259259
def assert_equal(config, _v1, _v2, _v3):

0 commit comments

Comments
 (0)