Skip to content

Commit

Permalink
Run latest black version on code
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Jan 29, 2025
1 parent 5a6794e commit 52e3e68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion minfraud/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def _hostname(hostname: str) -> str:


def _credit_card_token(s: str) -> str:
if re.match("^[\x21-\x7E]{1,255}$", s) and not re.match("^[0-9]{1,19}$", s):
if re.match("^[\x21-\x7e]{1,255}$", s) and not re.match("^[0-9]{1,19}$", s):
return s
raise ValueError

Expand Down
4 changes: 2 additions & 2 deletions tests/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def test_maybe_hash_email(self) -> None:
},
{
"name": "email local part nfc normalization form 2",
"input": {"email": {"address": "b\u00FCcher@example.com"}},
"input": {"email": {"address": "b\u00fccher@example.com"}},
"expected": {
"email": {
"address": "53550c712b146287a2d0dd30e5ed6f4b",
Expand Down Expand Up @@ -252,7 +252,7 @@ def test_clean_email() -> None:
{"input": "[email protected].", "output": "[email protected]"},
{"input": "[email protected]...", "output": "[email protected]"},
{"input": "example@bu\u0308cher.com", "output": "[email protected]"},
{"input": "example@b\u00FCcher.com", "output": "[email protected]"},
{"input": "example@b\u00fccher.com", "output": "[email protected]"},
]

for test in tests:
Expand Down

0 comments on commit 52e3e68

Please sign in to comment.