Skip to content

Commit 9d2a552

Browse files
committed
Flake8
1 parent 243dcda commit 9d2a552

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

osf/models/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def has_domain_in_user_fields_for_names(user):
120120
return False
121121

122122
text = name_content.lower()
123-
if any(suffix in text for suffix in ['m.sc.', 'msc.', 'phd.', 'ph.d.', 'msc.pt', 'pt.', 'prof.', 'dr.','md.', 'jd.', 'esq.']):
123+
if any(suffix in text for suffix in ['m.sc.', 'msc.', 'phd.', 'ph.d.', 'msc.pt', 'pt.', 'prof.', 'dr.', 'md.', 'jd.', 'esq.']):
124124
return False
125125

126126
if re.search(r'\b[a-z]\.[a-z0-9-]+\b', text):

osf_tests/test_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ def test_has_domain_in_user_fields_for_names_returns_false(user, user_data):
164164
'suffix',
165165
]
166166

167-
assert has_domain_in_user_fields_for_names(user) is False
167+
assert has_domain_in_user_fields_for_names(user) is False

0 commit comments

Comments
 (0)