From 52e3e682fcb3e7927ab8ebe1ad84eb535624ea52 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Wed, 29 Jan 2025 11:35:53 -0800 Subject: [PATCH] Run latest black version on code --- minfraud/validation.py | 2 +- tests/test_request.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/minfraud/validation.py b/minfraud/validation.py index b7b2dce..6d4d3e7 100644 --- a/minfraud/validation.py +++ b/minfraud/validation.py @@ -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 diff --git a/tests/test_request.py b/tests/test_request.py index dbb590f..aadad66 100644 --- a/tests/test_request.py +++ b/tests/test_request.py @@ -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", @@ -252,7 +252,7 @@ def test_clean_email() -> None: {"input": "foo@example.com.", "output": "foo@example.com"}, {"input": "foo@example.com...", "output": "foo@example.com"}, {"input": "example@bu\u0308cher.com", "output": "example@xn--bcher-kva.com"}, - {"input": "example@b\u00FCcher.com", "output": "example@xn--bcher-kva.com"}, + {"input": "example@b\u00fccher.com", "output": "example@xn--bcher-kva.com"}, ] for test in tests: