From 537ea7662b8b38075c551672dcb167d7231cb9f2 Mon Sep 17 00:00:00 2001 From: Minas Arustamyan Date: Tue, 5 May 2026 05:48:32 +0200 Subject: [PATCH] chore(store): genericize email examples in docstring + test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per CLAUDE.md vendor-agnostic OSS guidance — replace the real groupon.com email used as a sanitize_username() example with a placeholder (alice_smith@example.com). --- src/store_naming.py | 2 +- tests/test_store_naming.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store_naming.py b/src/store_naming.py index ce8bfcb..05d6601 100644 --- a/src/store_naming.py +++ b/src/store_naming.py @@ -30,7 +30,7 @@ def sanitize_username(email: str) -> str: replaces every run of non-``[a-z0-9-]`` characters with a single ``-``, collapses repeats, and trims leading/trailing dashes. - sanitize_username("c_marustamyan@groupon.com") -> "c-marustamyan" + sanitize_username("alice_smith@example.com") -> "alice-smith" sanitize_username("john.doe+claude@acme.com") -> "john-doe-claude" sanitize_username("USER@example.com") -> "user" diff --git a/tests/test_store_naming.py b/tests/test_store_naming.py index 5357e03..3cc2d66 100644 --- a/tests/test_store_naming.py +++ b/tests/test_store_naming.py @@ -15,7 +15,7 @@ from src.store_naming import ( class TestSanitizeUsername: @pytest.mark.parametrize("email,expected", [ - ("c_marustamyan@groupon.com", "c-marustamyan"), + ("alice_smith@example.com", "alice-smith"), ("john.doe+claude@acme.com", "john-doe-claude"), ("USER@example.com", "user"), ("a.b.c@x.y", "a-b-c"),