Skip to content

Commit 61ca62f

Browse files
committed
linters
1 parent 624e8d0 commit 61ca62f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/aind_data_schema/data_description.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class DataRegex(Enum):
3636
f"{RegexParts.DATE.value})_(?P<c_time>{RegexParts.TIME.value})$"
3737
)
3838
NO_UNDERSCORES = "^[^_]+$"
39-
NO_SPECIAL_CHARS = '^[^<>:;"/\|? _]+$'
39+
NO_SPECIAL_CHARS = '^[^<>:;"/|? _\\]+$'
4040

4141

4242
class DataLevel(Enum):
@@ -459,7 +459,7 @@ def __init__(self, analysis_name, **kwargs):
459459

460460
if not analysis_name:
461461
raise ValueError("Must input Analysis Name")
462-
462+
463463
if not re.match(f"{DataRegex.NO_SPECIAL_CHARS.value}", analysis_name):
464464
raise ValueError("Invalid analysis name, no special characters")
465465

@@ -480,7 +480,7 @@ def parse_name(cls, name):
480480
if m is None:
481481
raise ValueError(f"name({name}) does not match pattern")
482482

483-
creation_time = datetime_from_name_string(m.group("c_date"), m.group("c_time"))
483+
creation_time = datetime_from_name_string(m.group("c_date"), m.group("c_time"))
484484

485485
return dict(
486486
project_abbreviation=m.group("project_abbreviation"),

tests/test_data_description.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_constructors(self):
122122
investigators=["Jane Smith"],
123123
)
124124

125-
ad = AnalysisDescription(
125+
AnalysisDescription(
126126
analysis_name='analysis',
127127
project_name='project',
128128
creation_time=dt,

tests/test_processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_constructors(self):
2222
)
2323

2424
with self.assertRaises(pydantic.ValidationError):
25-
dp = DataProcess(
25+
DataProcess(
2626
name="Other",
2727
notes=""
2828
)

0 commit comments

Comments
 (0)