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: change regex patterns to raw strings #1645

Merged
merged 1 commit into from
Nov 29, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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