Skip to content

Commit 7e645e7

Browse files
style: auto-format code with ruff [skip ci]
1 parent 82a321c commit 7e645e7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dev-tools/container/container_dispatcher.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@
99

1010
def validate_python_version(version):
1111
"""Validate Python version format (e.g., 3.10, 3.11, 3.12, 3.13, 3.14)."""
12-
if not re.match(r'^3\.(1[0-4]|[0-9])$', version):
12+
if not re.match(r"^3\.(1[0-4]|[0-9])$", version):
1313
raise ValueError(f"Invalid Python version: {version}")
1414
return version
1515

1616

1717
def validate_registry(registry):
1818
"""Validate container registry format."""
19-
if not re.match(r'^[a-zA-Z0-9.-]+(?:\:[0-9]+)?$', registry):
19+
if not re.match(r"^[a-zA-Z0-9.-]+(?:\:[0-9]+)?$", registry):
2020
raise ValueError(f"Invalid registry: {registry}")
2121
return registry
2222

2323

2424
def validate_image_name(name):
2525
"""Validate container image name."""
26-
if not re.match(r'^[a-z0-9-]+$', name):
26+
if not re.match(r"^[a-z0-9-]+$", name):
2727
raise ValueError(f"Invalid image name: {name}")
2828
return name
2929

3030

3131
def validate_version(version):
3232
"""Validate semantic version format."""
33-
if not re.match(r'^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9-]+)?$', version):
33+
if not re.match(r"^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9-]+)?$", version):
3434
raise ValueError(f"Invalid version: {version}")
3535
return version
3636

0 commit comments

Comments
 (0)