Commit 2e0c8a7
chore: declare revenueholdings_license as optional 'license' extra (#33)
* build, test: fix packaging config and add edge-case tests
- Adds include-package-data + [tool.setuptools.package-data] deploydiff = ['py.typed']
- Fixes known-first-party from ['*'] to ['deploydiff']
- Adds test_edge_cases.py with 11 tests (render cost decrease/increase,
load_plan no-input, load_pricing nonexistent/custom, pulumi rollback,
cloudformation rollback with/without raw_data, packaging parity)
- Fixes ruff import sorting (I001) across 1 source + nested imports in tests
* style: fix ruff I001 import ordering in test_edge_cases.py
* fix: remove unused imports in edge case tests (ruff F401)
* cowork-bot: fix click_to_mcp eager import breaks all tests when not installed
cli.py imported run_for_app from mcp_server at module level; mcp_server.py
imported click_to_mcp at module level. click_to_mcp is an optional dep, so
any environment without it (CI, pip install deploydiff without [mcp]) raised
ModuleNotFoundError on import of cli — making the entire test suite fail at
collection time.
Fix: lazy imports in both files — click_to_mcp is now imported only inside
the functions that need it (run_mcp / run_for_app / mcp()), with a clear
error message + exit 1 when missing. All 97 existing tests pass; ruff clean.
* cowork-bot: seed cowork-auto-pr workflow for PR automation
* chore: declare revenueholdings_license as optional 'license' extra
---------
Co-authored-by: DevForge Engineer <engineer@devforge.dev>
Co-authored-by: cowork-bot <cowork@revenueholdings.dev>1 parent 488380f commit 2e0c8a7
4 files changed
Lines changed: 65 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
188 | 196 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
18 | 27 | | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
25 | 45 | | |
0 commit comments