Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Python formatting to get rid of linter errors from make lint-server #3260

Merged
merged 1 commit into from
Dec 25, 2024
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 elyra/tests/metadata/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ def test_validation_performance():
print(
f"\nMemory: {diff:,} kb, Start: {memory_start.rss / 1024 / 1024:,.3f} mb, "
f"End: {memory_end.rss / 1024 / 1024:,.3f} mb., "
f"Elapsed time: {t1-t0:.3f}s over {iterations} iterations."
f"Elapsed time: {t1 - t0:.3f}s over {iterations} iterations."
)


Expand Down
8 changes: 4 additions & 4 deletions elyra/tests/util/test_kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_is_valid_label_key_invalid_input():
assert not is_valid_label_key(key="/n") # prefix too short
assert not is_valid_label_key(key="p/") # name too short
assert not is_valid_label_key(key="a" * 254) # name too long
assert not is_valid_label_key(key=f"d/{'b'*64}") # name too long
assert not is_valid_label_key(key=f"d/{'b' * 64}") # name too long
# test first character violations (not alphanum)
assert not is_valid_label_key(key="-a")
assert not is_valid_label_key(key=".b")
Expand Down Expand Up @@ -116,7 +116,7 @@ def test_is_valid_label_key_valid_input():
assert is_valid_label_key(key="p/n")
assert is_valid_label_key(key="prefix/you.2")
assert is_valid_label_key(key="how.sad/to-see")
assert is_valid_label_key(key=f"{'d'*253}/{'n'*63}")
assert is_valid_label_key(key=f"{'d' * 253}/{'n' * 63}")


def test_is_valid_label_value_invalid_input():
Expand Down Expand Up @@ -175,7 +175,7 @@ def test_is_valid_annotation_key_invalid_input():
assert not is_valid_annotation_key(key="/n") # prefix too short
assert not is_valid_annotation_key(key="p/") # name too short
assert not is_valid_annotation_key(key="a" * 254) # name too long
assert not is_valid_annotation_key(key=f"d/{'b'*64}") # name too long
assert not is_valid_annotation_key(key=f"d/{'b' * 64}") # name too long
# test first character violations (not alphanum)
assert not is_valid_annotation_key(key="-a")
assert not is_valid_annotation_key(key=".b")
Expand Down Expand Up @@ -204,7 +204,7 @@ def test_is_valid_annotation_key_valid_input():
assert is_valid_annotation_key(key="p/n")
assert is_valid_annotation_key(key="prefix/you.2")
assert is_valid_annotation_key(key="how.sad/to-see")
assert is_valid_annotation_key(key=f"{'d'*253}/{'n'*63}")
assert is_valid_annotation_key(key=f"{'d' * 253}/{'n' * 63}")


def test_is_valid_annotation_value_invalid_input():
Expand Down
Loading