Fix some ruff issues in code

This commit is contained in:
2025-12-07 05:33:39 +01:00
parent 7c9598f632
commit 10704896f9
12 changed files with 27 additions and 28 deletions
+1 -2
View File
@@ -1,5 +1,6 @@
"""Movie domain value objects."""
import re
from dataclasses import dataclass
from enum import Enum
@@ -66,8 +67,6 @@ class MovieTitle:
Removes special characters and replaces spaces with dots.
"""
import re
# Remove special characters except spaces, dots, and hyphens
cleaned = re.sub(r"[^\w\s\.\-]", "", self.value)
# Replace spaces with dots