Commit ddd4577
CI: install [ml] extras + exclude web/ from mypy
predicators.yml broke after this branch slimmed setup.py's
install_requires. The base install no longer pulls torch / scipy /
imageio / the pretrained-model SDKs (those moved to [ml]), but slim
predicators/utils.py still imports them at module top — so any test
collecting `from predicators import utils` hit ModuleNotFoundError on
imageio in unit-tests, lint, and static-type-checking.
Fix:
- predicators.yml: change `pip install -e .` to `pip install -e .[ml]`
in unit-tests, static-type-checking, and lint jobs. yapf/isort/
docformatter don't import predicators so they stay slim.
- mypy.ini: add `web` to the top-level `exclude` regex. Without this
mypy treats `./setup.py` and `./web/app/setup.py` as the same
module "setup" and bails out with "Duplicate module named setup"
before checking anything else.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent af66758 commit ddd4577
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments