From 7d1b4d20a81375a04dec25c6b52e1fb0783f3fea Mon Sep 17 00:00:00 2001 From: Uriel Mandujano Date: Thu, 1 Feb 2024 10:54:48 -0600 Subject: [PATCH] fix: pre-commit formatting --- prefect_kubernetes/utilities.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prefect_kubernetes/utilities.py b/prefect_kubernetes/utilities.py index e6b5e04..1bb4835 100644 --- a/prefect_kubernetes/utilities.py +++ b/prefect_kubernetes/utilities.py @@ -177,7 +177,9 @@ def _slugify_label_key(key: str, max_length: int = 63, prefix_max_length=253) -> prefix, max_length=prefix_max_length, regex_pattern=r"[^a-zA-Z0-9-\.]+", - ).strip("_-.") # Must start or end with alphanumeric characters + ).strip( + "_-." + ) # Must start or end with alphanumeric characters or prefix )