Skip to content

Commit

Permalink
change regex patterns to raw strings (#1645)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikonen authored Nov 29, 2023
1 parent 02d769d commit 181aeca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metaflow/plugins/airflow/airflow_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class IncorrectProductionToken(MetaflowException):
headline = "Incorrect production token"


VALID_NAME = re.compile("[^a-zA-Z0-9_\-\.]")
VALID_NAME = re.compile(r"[^a-zA-Z0-9_\-\.]")


def resolve_token(
Expand Down
2 changes: 1 addition & 1 deletion metaflow/plugins/argo/argo_workflows_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

from .argo_workflows import ArgoWorkflows

VALID_NAME = re.compile("^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$")
VALID_NAME = re.compile(r"^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$")


class IncorrectProductionToken(MetaflowException):
Expand Down
2 changes: 1 addition & 1 deletion metaflow/plugins/aws/step_functions/step_functions_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .step_functions import StepFunctions
from .production_token import load_token, store_token, new_token

VALID_NAME = re.compile("[^a-zA-Z0-9_\-\.]")
VALID_NAME = re.compile(r"[^a-zA-Z0-9_\-\.]")


class IncorrectProductionToken(MetaflowException):
Expand Down

0 comments on commit 181aeca

Please sign in to comment.