Commit 67ee573
fix: Move email-validator to runtime dependencies (#51)
* fix: Move email-validator to runtime dependencies
The generated types use Pydantic's EmailStr which requires email-validator
at runtime. Previously it was only in dev dependencies, causing the CLI to
fail with "ModuleNotFoundError: No module named 'email_validator'".
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* test: Add CLI import test to catch missing runtime dependencies
Added test_cli_imports_successfully to verify that the CLI can import
all required dependencies, specifically including types that use EmailStr
which requires email_validator. This test would have caught the bug where
email_validator was only in dev dependencies.
The test imports Contact from brand_manifest which uses EmailStr, triggering
Pydantic's validation that requires email_validator to be installed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 673278f commit 67ee573
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
23 | 45 | | |
24 | 46 | | |
25 | 47 | | |
| |||
0 commit comments