Repository navigation
Commit 11a43bf
committed
Type-check the scripts on the newest supported Python
`Python - Check code style` fails on `main` because the scripts import the `docs` dependency
group, which installs Sphinx and nbsphinx only on Python 3.13+ (Sphinx 9.1+ requires it), while
that job lints on the oldest supported Python. Installing the group there resolves to nothing,
which is what the earlier attempt assumed was enough.
The scripts are dev tooling rather than library code, so a `code-style-scripts` job type-checks
them on the newest supported Python (3.15) with the group installed. The mypy config skips the
directory for the oldest-Python job, and the new job names the files, since `exclude` applies to
a directory target as well. `MYPYPATH` resolves the test harness that the notebook scripts import
from `python-wrapper/tests`.
`--group docs` on `code-style` goes: it is a no-op on 3.11 and the group belongs to the new job.1 parent 063432d commit 11a43bf
2 files changed
Lines changed: 44 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
55 | 92 | | |
56 | 93 | | |
57 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
194 | 199 | | |
195 | 200 | | |
196 | 201 | | |
0 commit comments