File tree Expand file tree Collapse file tree 4 files changed +40
-21
lines changed Expand file tree Collapse file tree 4 files changed +40
-21
lines changed Original file line number Diff line number Diff line change 53
53
}
54
54
],
55
55
"livePreview.defaultPreviewPath" : " docs/_build/html" ,
56
+ "multiDiffEditor.experimental.enabled" : true ,
56
57
"mypy-type-checker.args" : [" --config-file=${workspaceFolder}/pyproject.toml" ],
57
58
"mypy-type-checker.importStrategy" : " fromEnvironment" ,
58
59
"notebook.gotoSymbols.showAllSymbols" : true ,
Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ mypy = [
115
115
" tensorwaves[test-types]" ,
116
116
" types-PyYAML" ,
117
117
" types-requests" ,
118
+ " types-tensorflow" ,
119
+ " types-tqdm" ,
118
120
]
119
121
numba = [
120
122
" numba" ,
@@ -230,10 +232,6 @@ module = ["benchmarks.*", "tests.*"]
230
232
ignore_errors = true
231
233
module = [" typings.*" ]
232
234
233
- [[tool .mypy .overrides ]]
234
- ignore_missing_imports = true
235
- module = [" IPython.*" ]
236
-
237
235
[[tool .mypy .overrides ]]
238
236
ignore_missing_imports = true
239
237
module = [" iminuit.*" ]
@@ -244,27 +242,15 @@ module = ["numba.*"]
244
242
245
243
[[tool .mypy .overrides ]]
246
244
ignore_missing_imports = true
247
- module = [" numpy.*" ]
248
-
249
- [[tool .mypy .overrides ]]
250
- ignore_missing_imports = true
251
- module = [" phasespace.*" ]
252
-
253
- [[tool .mypy .overrides ]]
254
- ignore_missing_imports = true
255
- module = [" scipy.*" ]
256
-
257
- [[tool .mypy .overrides ]]
258
- ignore_missing_imports = true
259
- module = [" sphinx.*" ]
245
+ module = [" phasespace" ]
260
246
261
247
[[tool .mypy .overrides ]]
262
248
ignore_missing_imports = true
263
- module = [" tensorflow.* " ]
249
+ module = [" scipy.optimize " ]
264
250
265
251
[[tool .mypy .overrides ]]
266
252
ignore_missing_imports = true
267
- module = [" tqdm.* " ]
253
+ module = [" tensorflow.python.ops.numpy_ops " ]
268
254
269
255
[tool .pyright ]
270
256
exclude = [
Original file line number Diff line number Diff line change @@ -106,6 +106,38 @@ setenv =
106
106
EXECUTE_NB = yes
107
107
FORCE_COLOR = yes
108
108
109
+ [testenv:docnblive]
110
+ allowlist_externals =
111
+ sphinx-autobuild
112
+ commands =
113
+ sphinx-autobuild \
114
+ --open-browser \
115
+ --re-ignore .*/.ipynb_checkpoints/.* \
116
+ --re-ignore .*/__pycache__/.* \
117
+ --re-ignore docs/.*\.csv \
118
+ --re-ignore docs/.*\.gif \
119
+ --re-ignore docs/.*\.gv \
120
+ --re-ignore docs/.*\.inv \
121
+ --re-ignore docs/.*\.json \
122
+ --re-ignore docs/.*\.pickle \
123
+ --re-ignore docs/.*\.png \
124
+ --re-ignore docs/.*\.svg \
125
+ --re-ignore docs/.*\.yaml \
126
+ --re-ignore docs/.*\.yml \
127
+ --re-ignore docs/_build/.* \
128
+ --re-ignore docs/api/.* \
129
+ --re-ignore docs/usage/logs/.* \
130
+ --re-ignore docs/usage/sub_expr_f? \
131
+ --watch docs \
132
+ --watch src \
133
+ docs/ docs/_build/html
134
+ description =
135
+ Set up a server to directly preview changes to the HTML pages
136
+ passenv = *
137
+ setenv =
138
+ EXECUTE_NB = yes
139
+ FORCE_COLOR = yes
140
+
109
141
[testenv:jax]
110
142
allowlist_externals =
111
143
pytest
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ external libraries. You can do this using
6
6
[ ` stubgen ` ] ( https://mypy.readthedocs.io/en/stable/stubgen.html ) . For instance:
7
7
8
8
``` shell
9
- stubgen -p tensorflow -o typings
9
+ stubgen -p sympy -o typings
10
10
```
11
11
12
12
Alternatively, use [ Pyright] ( https://github.com/microsoft/pyright ) to generate stub
13
13
files that contain docstrings as well:
14
14
15
15
``` shell
16
- pyright --createstub tensorflow
16
+ pyright --createstub sympy
17
17
```
You can’t perform that action at this time.
0 commit comments